Merge from vscode a4177f50c475fc0fa278a78235e3bee9ffdec781 (#8649)

* Merge from vscode a4177f50c475fc0fa278a78235e3bee9ffdec781

* distro

* fix tests
This commit is contained in:
Anthony Dresser
2019-12-11 22:42:23 -08:00
committed by GitHub
parent 82974a2135
commit 4ba6a979ba
280 changed files with 10898 additions and 14231 deletions

View File

@@ -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;