From e0173528c6052445cf3957b762717db862db82eb Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Tue, 16 Jun 2020 15:38:26 -0700 Subject: [PATCH] Make debug mode work with new VS Code JS debugger --- src/compiler/sys.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/sys.ts b/src/compiler/sys.ts index a40034f1bec3a..da102435f326c 100644 --- a/src/compiler/sys.ts +++ b/src/compiler/sys.ts @@ -1231,7 +1231,7 @@ namespace ts { enableCPUProfiler, disableCPUProfiler, realpath, - debugMode: !!process.env.NODE_INSPECTOR_IPC || some(process.execArgv, arg => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)), + debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, arg => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)), tryEnableSourceMapsForHost() { try { require("source-map-support").install();