You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VS Code directly supports ANSI control sequences. However, cucumber only looks for the presence of ANSICON, which means no color output for VS Code users.
Possible Solution
Within ansicolor.rb, simply add an additional check for the presence of VS Code:
unlessENV['ANSICON'] || ENV['VSCODE_PID']
I have tested the above change with my local copy of the gem, and I am able to see the correct color output from cucumber in the VS Code integrated terminal. I figured I would share this with the community, and let you folks consider whether it is worth including in the project.
Edit: I updated the environment variable above. The previous value of VSCODE_CLI comes from running the code.bat file to launch VS Code. If you launch VS Code from the start menu, then that variable is not defined. However, VSCODE_PID appears to be a reliable indicator that you are running in the integrated terminal.
The text was updated successfully, but these errors were encountered:
Summary
VS Code directly supports ANSI control sequences. However,
cucumber
only looks for the presence of ANSICON, which means no color output for VS Code users.Possible Solution
Within
ansicolor.rb
, simply add an additional check for the presence of VS Code:I have tested the above change with my local copy of the gem, and I am able to see the correct color output from
cucumber
in the VS Code integrated terminal. I figured I would share this with the community, and let you folks consider whether it is worth including in the project.Edit: I updated the environment variable above. The previous value of
VSCODE_CLI
comes from running thecode.bat
file to launch VS Code. If you launch VS Code from the start menu, then that variable is not defined. However,VSCODE_PID
appears to be a reliable indicator that you are running in the integrated terminal.The text was updated successfully, but these errors were encountered: