mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-31 09:35:39 -05:00
Merge from vscode aba87f135229c17c4624341b7a2499dcedafcb87 (#6430)
* Merge from vscode aba87f135229c17c4624341b7a2499dcedafcb87 * fix compile errors
This commit is contained in:
@@ -91,6 +91,36 @@ export class BrowserWorkbenchEnvironmentService implements IEnvironmentService {
|
||||
|
||||
this.webviewEndpoint = configuration.webviewEndpoint;
|
||||
this.untitledWorkspacesHome = URI.from({ scheme: Schemas.untitled, path: 'Workspaces' });
|
||||
|
||||
if (document && document.location && document.location.search) {
|
||||
|
||||
const map = new Map<string, string>();
|
||||
const query = document.location.search.substring(1);
|
||||
const vars = query.split('&');
|
||||
for (let p of vars) {
|
||||
const pair = p.split('=');
|
||||
if (pair.length >= 2) {
|
||||
map.set(decodeURIComponent(pair[0]), decodeURIComponent(pair[1]));
|
||||
}
|
||||
}
|
||||
|
||||
const edp = map.get('edp');
|
||||
if (edp) {
|
||||
this.extensionDevelopmentLocationURI = [URI.parse(edp)];
|
||||
this.isExtensionDevelopment = true;
|
||||
}
|
||||
|
||||
const di = map.get('di');
|
||||
if (di) {
|
||||
this.debugExtensionHost.debugId = di;
|
||||
}
|
||||
|
||||
const ibe = map.get('ibe');
|
||||
if (ibe) {
|
||||
this.debugExtensionHost.port = parseInt(ibe);
|
||||
this.debugExtensionHost.break = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
untitledWorkspacesHome: URI;
|
||||
@@ -119,7 +149,7 @@ export class BrowserWorkbenchEnvironmentService implements IEnvironmentService {
|
||||
isExtensionDevelopment: boolean;
|
||||
disableExtensions: boolean | string[];
|
||||
builtinExtensionsPath: string;
|
||||
extensionsPath: string;
|
||||
extensionsPath?: string;
|
||||
extensionDevelopmentLocationURI?: URI[];
|
||||
extensionTestsPath?: string;
|
||||
debugExtensionHost: IExtensionHostDebugParams;
|
||||
@@ -143,6 +173,7 @@ export class BrowserWorkbenchEnvironmentService implements IEnvironmentService {
|
||||
driverHandle?: string;
|
||||
driverVerbose: boolean;
|
||||
webviewEndpoint?: string;
|
||||
galleryMachineIdResource?: URI;
|
||||
|
||||
get webviewResourceRoot(): string {
|
||||
return this.webviewEndpoint ? this.webviewEndpoint + '/vscode-resource{{resource}}' : 'vscode-resource:{{resource}}';
|
||||
|
||||
Reference in New Issue
Block a user