Problem
The webview.asWebviewUri is now the preferred way to load local resources in webview. We really want all webviews to migrate to using this api instead of using vscode-resource uri directly. Reasons:
asWebviewUri (mostly) handles some tricky edge cases around network drives on windows
asWebviewUri makes it possible to have a webviews that can load a mix of local and remote content.
asWebviewUri work much better on the web
Proposal
When developing a webview extension, warn in the console if that extension tries creating a webview that looks like it uses vscode-resource instead of webview.asWebviewUri
Problem
The
webview.asWebviewUriis now the preferred way to load local resources in webview. We really want all webviews to migrate to using this api instead of usingvscode-resourceuri directly. Reasons:asWebviewUri(mostly) handles some tricky edge cases around network drives on windowsasWebviewUrimakes it possible to have a webviews that can load a mix of local and remote content.asWebviewUriwork much better on the webProposal
When developing a webview extension, warn in the console if that extension tries creating a webview that looks like it uses
vscode-resourceinstead ofwebview.asWebviewUri