Skip to content

Commit 4080437

Browse files
authored
Use normalized path for loading remote webvie resources (#82530)
With the new asWebviewUri function, the raw uri is in a format the the remote file system will not be able to understand. Make sure we use the normalized path which is in the correct format
1 parent 68cd352 commit 4080437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/webview/common/resourceLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export async function loadLocalResource(
6060
authority: extensionLocation.authority,
6161
path: '/vscode-resource',
6262
query: JSON.stringify({
63-
requestResourcePath: requestUri.path
63+
requestResourcePath: normalizedPath.path
6464
})
6565
});
6666
return resolveContent(fileService, redirectedUri, getWebviewContentMimeType(requestUri));

0 commit comments

Comments
 (0)