visual studio – Custom colors in VSCode sidebar: Active Selection Git Colors vs. Inactive Selection Git Colors


I am customizing the colors in my VSCode with workbench.colorCustomizations, I find that there is an inconsistent behavior.

In the side bar list, when the selection is active, the color always respects this property: list.activeSelectionForeground in my case the value is #ffffffd8.

enter image description here

However, when it is inactive, it respects the Git color code, except when the file is unmodified in which case it respects list.inactiveSelectionForeground in my case the value is #ffffffd8.

enter image description here

I wonder if it is possible to have the same behavior as inactive selection, meaning that when I select a file in the side bar, it applies the Git color (gitDecoration properties in workbench.colorCustomizations).

  "workbench.colorCustomizations": {
    "list.activeSelectionForeground": "#ffffffd8",
    "list.inactiveSelectionForeground": "#ffffffd8",
  },

Leave a Reply

Your email address will not be published. Required fields are marked *