#83646 Webview: Cannot load resource outside of protocol root", if .md source is an network share#84702
Merged
mjbvz merged 3 commits intomicrosoft:masterfrom Nov 16, 2019
hadzhiyski:vh/open-md-from-shared-folder
Merged
#83646 Webview: Cannot load resource outside of protocol root", if .md source is an network share#84702mjbvz merged 3 commits intomicrosoft:masterfrom hadzhiyski:vh/open-md-from-shared-folder
mjbvz merged 3 commits intomicrosoft:masterfrom
hadzhiyski:vh/open-md-from-shared-folder
Conversation
ElectronWebviewBasedWebview local resource roots are with uppercase authority (host name)
Contributor
Author
|
Hello, @mjbvz , I am quite new to the vscode repository. Could you give me any guidelines if I am missing something? In my opinion the issue is fixed with latest changes. |
mjbvz
reviewed
Nov 14, 2019
|
|
||
| // windows paths are case insensitive | ||
| // when checking remote host, the host name is uppercase | ||
| if (extensionLocation && ( |
Collaborator
There was a problem hiding this comment.
Are you sure this is the correct fix? This code only applies if the extension is running remotely (which seems unrelated to #83646)
Contributor
Author
Contributor
Author
There was a problem hiding this comment.
isUNC(root.fsPath) && isUNC(resource.fsPath) this should do. It's tested on a Windows 10 desktop.
Collaborator
|
Thanks! This fix will be in the next insiders build and is scheduled to ship with VS Code 1.41 early next month |
Contributor
Author
|
Thank you for the support! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

ElectronWebviewBasedWebview local resource roots are with uppercase authority (host name)
This PR fixes #83646