未验证 提交 bd0f1d02 编写于 作者: A Asher

Support vscode-resource requests in webview

上级 5944b842
...@@ -437,6 +437,9 @@ export class MainServer extends Server { ...@@ -437,6 +437,9 @@ export class MainServer extends Server {
case "/": return this.getRoot(request, parsedUrl); case "/": return this.getRoot(request, parsedUrl);
case "/resources": return this.getResource(requestPath); case "/resources": return this.getResource(requestPath);
case "/webview": case "/webview":
if (requestPath.indexOf("/vscode-resource") === 0) {
return this.getResource(requestPath.replace(/^\/vscode-resource/, ""));
}
return this.getResource( return this.getResource(
this.rootPath, this.rootPath,
"out/vs/workbench/contrib/webview/browser/pre", "out/vs/workbench/contrib/webview/browser/pre",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册