Skip to content

Commit

Permalink
remote inspect-port, workaround for #85490
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Nov 25, 2019
1 parent 1692d4e commit 008dc31
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 008dc31

Please sign in to comment.