Skip to content

Commit

Permalink
Merge pull request #85529 from microsoft/joh/fix/85490
Browse files Browse the repository at this point in the history
remove inspect-port
  • Loading branch information
jrieken authored Nov 25, 2019
2 parents 1692d4e + 008dc31 commit f359dd6
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 f359dd6

Please sign in to comment.