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
I'm on the VS Code team and am investigating adding a new API for managing webviews. As your extension already is using webviews through the html preview, I'd like your feedback on our proposal.
You can find the first cut of new api here. It supersedes TextDocumentContentProvider and will hopefully make creating and working with webviews easier. It also adds a few important security improvements that will better protect users even if a webview accidentally allows untrusted content injection.
To try the new API:
Add "enableProposedApi": true to your package.json
I'm on the VS Code team and am investigating adding a new API for managing webviews. As your extension already is using webviews through the html preview, I'd like your feedback on our proposal.
You can find the first cut of new api here. It supersedes
TextDocumentContentProvider
and will hopefully make creating and working with webviews easier. It also adds a few important security improvements that will better protect users even if a webview accidentally allows untrusted content injection.To try the new API:
"enableProposedApi": true
to yourpackage.json
vscode.proposed.d.ts
and add it to your project: https://raw.githubusercontent.com/Microsoft/vscode/master/src/vs/vscode.proposed.d.tsVS Code's markdown preview is already using this new API. We're still iterating on the API so the specifics may change. microsoft/vscode#43713 tracks this work on our side
Please take a look at the new webview API and let me know if you have any questions or suggestions.
The text was updated successfully, but these errors were encountered: