We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7945be commit 95693fbCopy full SHA for 95693fb
src/node/server.ts
@@ -523,8 +523,8 @@ export class MainServer extends Server {
523
}
524
break;
525
case "/webview":
526
- if (requestPath.indexOf("/vscode-resource") === 0) {
527
- return this.getResource(requestPath.replace(/^\/vscode-resource/, ""));
+ if (/^\/vscode-resource/.test(requestPath)) {
+ return this.getResource(requestPath.replace(/^\/vscode-resource(\/file)?/, ""));
528
529
return this.getResource(
530
this.rootPath,
0 commit comments