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();