From 9a8be02e5d0611a5872894af5b958860ce315469 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Fri, 11 Oct 2019 23:15:00 -0700 Subject: [PATCH] Use normalized path for loading remote webvie resources 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 --- src/vs/workbench/contrib/webview/common/resourceLoader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/webview/common/resourceLoader.ts b/src/vs/workbench/contrib/webview/common/resourceLoader.ts index 4c26dae84a4..c0915591caf 100644 --- a/src/vs/workbench/contrib/webview/common/resourceLoader.ts +++ b/src/vs/workbench/contrib/webview/common/resourceLoader.ts @@ -60,7 +60,7 @@ export async function loadLocalResource( authority: extensionLocation.authority, path: '/vscode-resource', query: JSON.stringify({ - requestResourcePath: requestUri.path + requestResourcePath: normalizedPath.path }) }); return resolveContent(fileService, redirectedUri, getWebviewContentMimeType(requestUri)); -- GitLab