Use local webview endpoint for web mode (#16570)

This commit is contained in:
Hai Cao
2021-08-09 15:53:37 -07:00
committed by GitHub
parent 647d1f1167
commit 2a096a48c1

View File

@@ -411,7 +411,10 @@ class WindowIndicator implements IWindowIndicator {
throw new Error('Missing web configuration element');
}
const config: IWorkbenchConstructionOptions & { folderUri?: UriComponents, workspaceUri?: UriComponents } = JSON.parse(configElementAttribute);
const config: IWorkbenchConstructionOptions & { folderUri?: UriComponents, workspaceUri?: UriComponents } = {
...JSON.parse(configElementAttribute),
webviewEndpoint: `${window.location.origin}${window.location.pathname.replace(/\/+$/, '')}/webview`
}; // {{SQL CARBON EDIT}} Use local webview endpoint
// Find workspace to open and payload
let foundWorkspace = false;