How to fix ANSI colors encoding in VSCode Git Log?

Viewed 71

I'm trying to run a pre-commit hook that runs lint-staged. When I commit my staged files using Windows PowerShell, I get the following result: Result of lint-staged on Windows powershell

But when I try to commit the files VScode Source Control, it outputs the result to Git Log, which looks like this: Result of lint-staged on Git Log

Do you know how can I fix this bad encoding? I suspect that it happens because it probably missing ANSI colors support. I found some related topics:

  1. https://github.com/microsoft/vscode/issues/38834#issuecomment-454798872 (I tried the suggested extension, but it didn't work for me).
  2. https://laracasts.com/discuss/channels/general-discussion/cannot-get-ansi-colors-to-work-in-vs-code-git-bash-integrated-terminal
  3. ANSI colors don't work in VSCode integrated terminal

Thanks

0 Answers
Related