Skip to content

Commit 624cd9d

Browse files
committed
Fix webview 404s
An extra slash caused a 404 (was /webview//vscode-resource).
1 parent 2a3608d commit 624cd9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/dev/vscode.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ index 2c64061da7b01aef0bfe3cec851da232ca9461c8..c0ef8faedd406c38bf9c55bbbdbbb060
430430
// Do nothing. If we can't read the file we have no
431431
// language pack config.
432432
diff --git a/src/vs/code/browser/workbench/workbench.ts b/src/vs/code/browser/workbench/workbench.ts
433-
index 0ef8b9dc81419b53b27cf111fb206d72ba56bada..75d2ab3276049115829a38b8b7afee44bb748c2a 100644
433+
index 0ef8b9dc81419b53b27cf111fb206d72ba56bada..62a79602a831bca0dc62ad57dc10a9375f8b9cdb 100644
434434
--- a/src/vs/code/browser/workbench/workbench.ts
435435
+++ b/src/vs/code/browser/workbench/workbench.ts
436436
@@ -17,6 +17,7 @@ import { isStandalone } from 'vs/base/browser/browser';
@@ -468,7 +468,7 @@ index 0ef8b9dc81419b53b27cf111fb206d72ba56bada..75d2ab3276049115829a38b8b7afee44
468468

469469
- const config: IWorkbenchConstructionOptions & { folderUri?: UriComponents, workspaceUri?: UriComponents } = JSON.parse(configElementAttribute);
470470
+ const config: IWorkbenchConstructionOptions & { folderUri?: UriComponents, workspaceUri?: UriComponents } = {
471-
+ webviewEndpoint: `${window.location.origin}${window.location.pathname.replace(/\/+$/, '')}/webview/`,
471+
+ webviewEndpoint: `${window.location.origin}${window.location.pathname.replace(/\/+$/, '')}/webview`,
472472
+ ...JSON.parse(configElementAttribute),
473473
+ };
474474
+

0 commit comments

Comments
 (0)