diff options
author | Johannes Rieken <johannes.rieken@gmail.com> | 2019-11-25 17:26:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-25 17:26:32 +0300 |
commit | f359dd69833dd8800b54d458f6d37ab7c78df520 (patch) | |
tree | 40546bf271e4bff5479eea61caf42311ee282bd0 | |
parent | 1692d4eeeeb75aa9f1a176487080a191ee7d1ddf (diff) | |
parent | 008dc310701fa1c13b14c9b6ae152ede70d226e5 (diff) |
Merge pull request #85529 from microsoft/joh/fix/854901.40.2release/1.40
remove inspect-port
-rw-r--r-- | src/vs/workbench/services/extensions/node/extensionHostProcessSetup.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vs/workbench/services/extensions/node/extensionHostProcessSetup.ts b/src/vs/workbench/services/extensions/node/extensionHostProcessSetup.ts index 9955c682758..0f35c544319 100644 --- a/src/vs/workbench/services/extensions/node/extensionHostProcessSetup.ts +++ b/src/vs/workbench/services/extensions/node/extensionHostProcessSetup.ts @@ -27,6 +27,17 @@ interface ParsedExtHostArgs { uriTransformerPath?: string; } +// workaround for https://github.com/microsoft/vscode/issues/85490 +// remove --inspect-port=0 after start so that it doesn't trigger LSP debugging +(function removeInspectPort() { + for (let i = 0; i < process.execArgv.length; i++) { + if (process.execArgv[i] === '--inspect-port=0') { + process.execArgv.splice(i, 1); + i--; + } + } +})(); + const args = minimist(process.argv.slice(2), { string: [ 'uriTransformerPath' |