Skip to content

Commit

Permalink
Make runCommand strip ANSI codes
Browse files Browse the repository at this point in the history
This makes runCommand automatically strip ANSI escapes from stdout
and stderr, while still allowing user to opt-in for not stripping
them.

The reason for using stripping by default is that the primary use
case for runCommand is to process the output and not to display it
inside a terminal. This should prevent bugs where we fail to parse
the output from various tools due to presence of ANSI codes.

Related: ansible/vscode-ansible#373
  • Loading branch information
ssbarnea committed Jan 27, 2022
1 parent f625944 commit 221202c
Show file tree
Hide file tree
Showing 4 changed files with 296 additions and 35 deletions.
Loading

0 comments on commit 221202c

Please sign in to comment.