Skip to content

SourceControlResourceDecorations don't listen to theme style changes #102818

@dcermak

Description

@dcermak
  • VSCode Version: 1.47.2
  • OS Version: openSUSE Tumbleweed

Steps to Reproduce:

  1. Create a SourceControlProvider, add a resourceGroup and add some resourceStates
  2. add a dark and light decoration with different icons, e.g.:
resourceState.decorations = { 
  dark: { iconPath: "path/to/dark/image.svg" }, 
  light: { iconPath: "path/to/light/image.svg" } 
}
  1. launch the extension, switch between the light and dark theme and observe that it always uses image from the light theme.

Does this issue occur when all extensions are disabled?: Yes

If I am not mistaken, then the code handling this can be found here:


However, when glancing over that, I have absolutely no idea how that can work, as it just pushes the icon paths into an array and omits the information whether the icon is for the dark or light theme.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersscmGeneral SCM compound issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions