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
constvsuri=webview.asWebviewUri(Uri.file(path.join(__dirname,"../drawio/src/main/webapp/index.html")));webview.html=`... ${vsuri.toString()} ...`;// this loads something from vsuri
Launch the Extension Development Host VS Code Instance and ensure that it loads this webview on startup.
You can do this by registering a custom editor that uses such a webview and open such a custom editor before closing the Extension Development Host. The next time the Extension Development Host is started, the custom editor will load the webview. This usually (>70% chance) produces the following error:
The Error
Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME
I guess it refers to vscode-resource://.
It only happens on startup, and possibly only in the extension dev host. If I close the the webview and reopen it, it works (this rules out a bug in my extension).
A minimal reproducible extension is some serious work. Others have this same issue.
The text was updated successfully, but these errors were encountered:
It actually also happens when bundling the extension and installing it manually, but much less often (like once for 10 refreshes). So it is not a development only issue.
Context
Load a resource like so:
Launch the Extension Development Host VS Code Instance and ensure that it loads this webview on startup.
You can do this by registering a custom editor that uses such a webview and open such a custom editor before closing the Extension Development Host. The next time the Extension Development Host is started, the custom editor will load the webview. This usually (>70% chance) produces the following error:
The Error
Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME
I guess it refers to
vscode-resource://
.It only happens on startup, and possibly only in the extension dev host. If I close the the webview and reopen it, it works (this rules out a bug in my extension).
A minimal reproducible extension is some serious work. Others have this same issue.
The text was updated successfully, but these errors were encountered: