mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Merge from vscode a4177f50c475fc0fa278a78235e3bee9ffdec781 (#8649)
* Merge from vscode a4177f50c475fc0fa278a78235e3bee9ffdec781 * distro * fix tests
This commit is contained in:
@@ -308,36 +308,6 @@ export class BrowserWorkbenchEnvironmentService implements IWorkbenchEnvironment
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// TODO@Ben remove me once environment is adopted
|
||||
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(pair[0], decodeURIComponent(pair[1]));
|
||||
}
|
||||
}
|
||||
|
||||
const edp = map.get('extensionDevelopmentPath');
|
||||
if (edp) {
|
||||
extensionHostDebugEnvironment.extensionDevelopmentLocationURI = [URI.parse(edp)];
|
||||
extensionHostDebugEnvironment.isExtensionDevelopment = true;
|
||||
}
|
||||
|
||||
const di = map.get('debugId');
|
||||
if (di) {
|
||||
extensionHostDebugEnvironment.params.debugId = di;
|
||||
}
|
||||
|
||||
const ibe = map.get('inspect-brk-extensions');
|
||||
if (ibe) {
|
||||
extensionHostDebugEnvironment.params.port = parseInt(ibe);
|
||||
extensionHostDebugEnvironment.params.break = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return extensionHostDebugEnvironment;
|
||||
|
||||
Reference in New Issue
Block a user