提交 9a8be02e 编写于 作者: M Matt Bierner 提交者: Erich Gamma

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
上级 3d716c20
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册