Skip to content

Commit bd0f1d0

Browse files
committed
Support vscode-resource requests in webview
1 parent 5944b84 commit bd0f1d0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/server.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,9 @@ export class MainServer extends Server {
437437
case "/": return this.getRoot(request, parsedUrl);
438438
case "/resources": return this.getResource(requestPath);
439439
case "/webview":
440+
if (requestPath.indexOf("/vscode-resource") === 0) {
441+
return this.getResource(requestPath.replace(/^\/vscode-resource/, ""));
442+
}
440443
return this.getResource(
441444
this.rootPath,
442445
"out/vs/workbench/contrib/webview/browser/pre",

0 commit comments

Comments
 (0)