Skip to content

Color of tab name of modified file reverts to default color if a problem is detected #238040

Closed

Description

  • VS Code Version: 1.96.3
  • OS Version: Windows 11

Steps to Reproduce:

  1. With VSCode and GitLens enabled, open a project linked to a git repository
  2. Modify a file locally. The tab name appears in orange:

Image

  1. Add or update code in the file that generates a warning (listed in Problems tab), such as an unused function. The tab name reverts to default color:

Image

Expected behavior:
The tab name should stay in orange as long as it's modified locally.

Activity

  1. added
    bug
    workbench-tabs
    on Jan 16, 2025
  2. mcaquet commented on May 9, 2025

    @mcaquet
    Author

    Any visibility on when this bug will be fixed Benjamin Christopher Simmonds (@benibenj) please ?

  3. benibenj commented on May 9, 2025

    @benibenj
    Contributor

    This seems like a decorations issue for high contrast themes:

    • list.errorForeground is set to null
    • gitDecoration.modifiedResourceForeground is set to #E2C08D (dark)

    Because list.errorForeground has higher weight, it is preferred over the git decoration.

    2 things seem odd to me.

    • Why is there no color for errors in high contrast theme when there is a color for git modified files
    • When there are 2 decorations being applied and the decoration with the higher weight has color set to null, why isn't the color used of the other decoration?

    This is not a tab issue, I think this belongs to Johannes Rieken (@jrieken)?

  4. mcaquet commented on Aug 4, 2025

    @mcaquet
    Author

    Hi Johannes Rieken (@jrieken) and Benjamin Christopher Simmonds (@benibenj) possible to get this bug fixed in next version please ?

  5. changed the title [-]Color of tab name for modified file reverts to default color if a problem is detected[/-] [+]Color of tab name of modified file reverts to default color if a problem is detected[/+] on Aug 19, 2025
  6. added
    unreleased
    on Jul 14, 2026
  7. added
    insiders-released
    and removed
    unreleased
    on Jul 14, 2026
  8. isosphere commented on Nov 9, 2026

    @isosphere

    This seems like a decorations issue for high contrast themes

    I searched for my own problem and it landed me here.

    I'm unsure if it's the same issue: I had modified files with errors in them. Mousing over in the file explorer would show a count of problems, but the files would only decorate for being modified. I was using the default high contrast theme. If I use almost anything else, I see problems highlighted appropriately again. This was pretty confusing.

    I believe my version contains the fix in #325422

    Version: 1.145.2
    Commit: c4453f8
    Date: 2026-11-06T04:28:13Z
    Electron: 43.8.3
    ElectronBuildId: 15784459
    Chromium: 150.0.7871.250
    Node.js: 24.22.1
    V8: 15.0.245.31-electron.0
    @github/copilot: 1.0.103.r41379698026.g3219c66
    @github/copilot-sdk: 1.0.27.41379698026.g3219c66
    OS: Linux x64 7.3.0-rc7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfile-decorationsinsiders-releasedlanguages-diagnosticsverified

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions