-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with JS and TextDocumentContentProvider #2912
Comments
I didn't implement this, but I think we use an fyi @jrieken |
@alexandrudima correct, but we do not disable JS execution and I don't think we strip scripts. This was the state when we last discussed it and the intent is to switch from an @dfinke the code is here: To debug this pls see https://github.com/Microsoft/vscode/wiki/How-to-Contribute#development-workflow in the Debugging section. The htmlPreview code runs into the I'll look into this later, I see where you are going with your scenario and this is a interesting scenario. |
@dfinke @alexandrudima |
Very cool. So a few tweaks to the html preview and vs code can be an interactive d3 pad. I was looking at the |
well this is where it started 😄, need to understand the differences with regard to JS handling in the two implementations. As a workaround you could already do the d3 things using the markdown preview as is done in the twitter extension, but we should really get this to work. |
The short Tweet on this drove questions in my direction. The snippet does not work in the 0.10.8 release. I know the Build conference is coming. Hopefully this can make it into the editor no too long after. It'd be a great feature. |
I'll take a look - things are rendered in an iframe and script aren't blocked in anyway. |
@jrieken Maybe we should use a |
The web view is past GA and tracked in #2414 |
TextDocumentContentProvider works. I used this as a starting point https://github.com/Microsoft/vscode-extension-samples/tree/master/textdocumentprovider-sample
This works if you save it as an html file and open it in a browser, but not if I return it in provideTextDocumentContent:
https://gist.github.com/dfinke/f51f8cba643b1b153ef8
Is there a way to make it work or debug?
The text was updated successfully, but these errors were encountered: