diff --git a/index.js b/index.js index a25442a..dd33879 100644 --- a/index.js +++ b/index.js @@ -48,6 +48,10 @@ function supportsColor(stream) { } if (stream && !stream.isTTY && forceColor !== true) { + // VS code debugger doesn't have isTTY set + if (env.VSCODE_PID) { + return 1; + } return 0; }