You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Raymond Camden (@cfjedimaster) The idea is that you can register for a URI-scheme, like foo and that someone will ask you provide the contents for foo://something/anotherthing when a corresponding call to openTextDocument is made.
Those document must not be able to be saved and can be readonly by some mechanism (TBD). Will that be enough for your needs?
no, it's more to allow to define your own space using a scheme, like so myextension://project1/path/to/fake/resource would be a valid Uri and it would be up to you to resolve that somehow, like deriving info from a dll-file or generated markup.
WOOT! I have it working. I'm kinda guessing at a few things and it is 99%
your code still, but it is there. I literally just need to polish it up a
bit and then I can publish mine too. :) Thank you so much.
Raymond Camden (@cfjedimaster) I ran yo code and updated the package devDependencies for ^0.11.x, also added a "postinstall": "node ./node_modules/vscode/bin/install". Ran npm install.
My extension stills says here is no exported member TextDocumentContentProvider.
Activity
jrieken commentedon Nov 24, 2015
Raymond Camden (@cfjedimaster) The idea is that you can register for a URI-scheme, like
fooand that someone will ask you provide the contents forfoo://something/anotherthingwhen a corresponding call to openTextDocument is made.Those document must not be able to be saved and can be readonly by some mechanism (TBD). Will that be enough for your needs?
cfjedimaster commentedon Nov 24, 2015
Sure.
jrieken commentedon Dec 22, 2015
Idea is to allow to contribute content (?) provider, like so
cfjedimaster commentedon Dec 22, 2015
Open would require a uri? Does that mean I'd need to save the text locally first?
jrieken commentedon Dec 22, 2015
no, it's more to allow to define your own space using a scheme, like so
myextension://project1/path/to/fake/resourcewould be a valid Uri and it would be up to you to resolve that somehow, like deriving info from a dll-file or generated markup.cfjedimaster commentedon Dec 22, 2015
Ok... I kinda get it. :) I'd love to test this when possible. Let me know.
jrieken commentedon Dec 23, 2015
I will keep you in the loop once we sketch out the API for this.
DickvdBrink commentedon Dec 29, 2015
I would love this feature as well :)
33 remaining items
egamma commentedon Feb 9, 2016
I've added a sample that illustrates how to use
TextContentProvidersand thevscode.previewHtmlcommands.Pls see: https://github.com/Microsoft/vscode-extension-samples/blob/master/textdocumentprovider-sample/README.md
cfjedimaster commentedon Feb 10, 2016
Thank you - will give this a shot!
On Tue, Feb 9, 2016 at 4:30 PM, Erich Gamma [email protected]
wrote:
Raymond Camden, Developer Advocate for MobileFirst at IBM
Email : [email protected]
Blog : www.raymondcamden.com
Twitter: raymondcamden
cfjedimaster commentedon Feb 10, 2016
Should this work in the most recent mainline release? I'm getting errors
when I try it:
Activating extension
eg2.vscode-css-propertiesfailed: Cannot find module'/Users/raymondcamden/Downloads/vscode-extension-samples-master/textdocumentprovider-sample/out/src/extension'.
Activating extension
eg2.vscode-css-propertiesfailed: Cannot findmodule
'/Users/raymondcamden/Downloads/vscode-extension-samples-master/textdocumentprovider-sample/out/src/extension'
On Wed, Feb 10, 2016 at 7:17 AM, Raymond Camden [email protected]
wrote:
Raymond Camden, Developer Advocate for MobileFirst at IBM
Email : [email protected]
Blog : www.raymondcamden.com
Twitter: raymondcamden
cfjedimaster commentedon Feb 10, 2016
Forgot to run npm install - sorry about that.
On Wed, Feb 10, 2016 at 7:49 AM, Raymond Camden [email protected]
wrote:
Raymond Camden, Developer Advocate for MobileFirst at IBM
Email : [email protected]
Blog : www.raymondcamden.com
Twitter: raymondcamden
egamma commentedon Feb 10, 2016
I've also published the sample to the market place just in case.
cfjedimaster commentedon Feb 10, 2016
WOOT! I have it working. I'm kinda guessing at a few things and it is 99%
your code still, but it is there. I literally just need to polish it up a
bit and then I can publish mine too. :) Thank you so much.
Quick question. This line:
vscode.Uri.parse('css-preview://authority/css-preview');
How would you describe that URI? This is what I went with but I was just
guessing:
vscode.Uri.parse('html-escape://cfjedimaster/html-escape');
On Wed, Feb 10, 2016 at 8:04 AM, Erich Gamma [email protected]
wrote:
Raymond Camden, Developer Advocate for MobileFirst at IBM
Email : [email protected]
Blog : www.raymondcamden.com
Twitter: raymondcamden
cfjedimaster commentedon Feb 10, 2016
And here it is: https://marketplace.visualstudio.com/items?itemName=raymondcamden.htmlescape-vscode-extension
egamma commentedon Feb 10, 2016
Cool that it worked for you.
This looks good to me, you define your own URI scheme
html-escapeand all the rest is yours.cfjedimaster commentedon Feb 10, 2016
So 100% of the string is - basically - whatever we want? Well, within reason, and named something at least similar to what it is doing?
egamma commentedon Feb 10, 2016
Yes, as long as it properly identifies the resource and conforms to an URI.
dfinke commentedon Feb 10, 2016
Raymond Camden (@cfjedimaster) I ran
yo codeand updated the package devDependencies for ^0.11.x, also added a"postinstall": "node ./node_modules/vscode/bin/install". Rannpm install.My extension stills says here is no exported member
TextDocumentContentProvider.I'm missing a step somewhere
egamma commentedon Feb 11, 2016
Emphasized the missing step to update the engines field in the release notes.