mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-01 17:23:35 -05:00
Use local webview endpoint for web mode (#16570)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user