vscode-terminals: Color and icon is not applied

Color and icon for the terminals is not working. Setting "color": "#00ff00" or "icon": "github" for example doesn’t do anything. I’ve debugged a bit and I can see the colors and icons being set on the terminals, but it’s not shown on the actual terminal icon.

Here you can see the color being included in the creationOptions: CleanShot 2022-09-01_06 17 05@2x

My terminals.json:

{
  "autorun": true,
  "autokill": true,
  "terminals": [
    {
      "name": "Next",
      "commands": ["npm run dev"],
      "color": "#ff0000"
    },

    {
      "name": "Util",
      "color": "#ff0000"
    }
  ]
}

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 5
  • Comments: 20 (5 by maintainers)

Most upvoted comments

As a temporary fix, I got it to work by manually assigning the shellPath, even if it is my default one. I’ve only tested in Windows, though.

"shellPath": "C:\\Program Files\\PowerShell\\7\\pwsh.exe"

As a temporary fix, I got it to work by manually assigning the shellPath, even if it is my default one. I’ve only tested in Windows, though.

"shellPath": "C:\\Program Files\\PowerShell\\7\\pwsh.exe"

Worked for me too, but only fixed the icon but not the color:

"shellPath": "C:\\Program Files\\Git\\bin\\bash.exe" EDIT: fixed the color too, when applied to each terminal setting

Thank you for this workaround ! Working on my mac with the following code:

{
      "name": "my terminal",
      "icon": "watch",
      "color": "terminal.ansiCyan",
      "shellPath": "/bin/zsh",
}