Skip to content

TreeItems rendered with multiple icons in custom tree #113374

Closed

Description

@xqzlgy2
  • VSCode Version: 1.52.1
  • OS Version: Windows 10

Steps to Reproduce:

  1. Set both resourceUri and iconPath attribute for a TreeItem in custom tree (iconPath is set with ThemeIcon instead of path)
  2. Multiple icon will be displayed in custom tree, one is contributed by iconPath, the other is same as File Explorer's.

For example, if I set resourceUri to a Java file, and I also set class, interface, enum icons in order to distinguish main class type in a Java file, I would get:

image

I've already tried that if I set iconPath to a svg path, the TreeItem will be rendered correctly. But it's more consistent to use ThemeIcon.

Also, if I don't set resourceUri, it would also be correct, but in that case I can not benefit from VS Code's built in FileDecorator to display each files' source control status.

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

Activity

  1. added
    bug
    tree-views
    on Dec 24, 2020
  2. added
    author-verification-requested
    on Dec 24, 2020
  3. added
    unreleased
    on Dec 24, 2020
  4. added
    insiders-released
    and removed
    unreleased
    on Jan 5, 2021
  5. vscode-triage-bot commented on Jan 5, 2021

    @vscode-triage-bot

    This bug has been fixed in to the latest release of VS Code Insiders!

    Qinzhou Xu (@xqzlgy2), you can help us out by commenting /verified if things are now working as expected.

    If things still don't seem right, please ensure you're on version a48ef56 of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.

    Happy Coding!

  6. xqzlgy2 commented on Jan 6, 2021

    @xqzlgy2
    Author

    /verified

  7. locked and limited conversation to collaborators on Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buginsiders-releasedtree-viewsverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions