From 4b5f86a9c8275a57726f8ac55f374cc38dbb30dd Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 6 Aug 2018 23:58:30 -0400 Subject: [PATCH] Updates isDebugging regex --- src/logger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logger.ts b/src/logger.ts index d7e54ff..58510e1 100644 --- a/src/logger.ts +++ b/src/logger.ts @@ -6,7 +6,7 @@ import { extensionOutputChannelName } from './constants'; const ConsolePrefix = `[${extensionOutputChannelName}]`; -const isDebuggingRegex = /^--inspect(-brk)?=?/; +const isDebuggingRegex = /^--(debug|inspect)\b(-brk\b|(?!-))=?/; export class Logger { static level: OutputLevel = OutputLevel.Silent;