Skip to content

Commit

Permalink
Give min requirements to VS Code integrated terminal + debugger (#77)
Browse files Browse the repository at this point in the history
* adding test for VSCODE

* Revert "adding test for VSCODE"

This reverts commit 1000693.

* adding min support for vscode debugger

* moving vscode test
  • Loading branch information
wuweiweiwu authored and Qix- committed Mar 2, 2018
1 parent f21e5c2 commit b764af9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b764af9

Please sign in to comment.