Skip to content

Commit

Permalink
Fix sys.debugMode when using VSCode's new preview debugger (#37558)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton authored Mar 26, 2020
1 parent 4fc4c4e commit 9119fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/sys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ namespace ts {
enableCPUProfiler,
disableCPUProfiler,
realpath,
debugMode: some(<string[]>process.execArgv, arg => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)),
debugMode: !!process.env.NODE_INSPECTOR_IPC || some(<string[]>process.execArgv, arg => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)),
tryEnableSourceMapsForHost() {
try {
require("source-map-support").install();
Expand Down

0 comments on commit 9119fe3

Please sign in to comment.