-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code InsidersscmGeneral SCM compound issuesGeneral SCM compound issuesverifiedVerification succeededVerification succeeded
Milestone
Description
- VSCode Version: 1.47.2
- OS Version: openSUSE Tumbleweed
Steps to Reproduce:
- Create a
SourceControlProvider, add aresourceGroupand add someresourceStates - add a
darkandlightdecoration with different icons, e.g.:
resourceState.decorations = {
dark: { iconPath: "path/to/dark/image.svg" },
light: { iconPath: "path/to/light/image.svg" }
}- 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:
| if (lightIconUri) { |
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 bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code InsidersscmGeneral SCM compound issuesGeneral SCM compound issuesverifiedVerification succeededVerification succeeded