Skip to content

Extract icon information from resource uri representing tree item #41535

Closed

Description

From Benjamin Pasero (@bpasero) here

In my case I am showing files in the same way the explorer does. I would like to reuse the same icons the explorer uses for files without me having to introduce new icons. for that, maybe the API should allow a TreeItem to have a resource URI that we then simply take as ResourceLabel and support icons with? Even more, if we had an associated resource, we could automatically open a document with that resource on click?

Activity

  1. added
    feature-request
    tree-views
    on Jan 12, 2018
  2. added a commit that references this issue on Jan 15, 2018
  3. sandy081 commented on Jan 29, 2018

    @sandy081
    MemberAuthor

    To verify:

    • Develop an extension contributing a custom tree view where each node is a file resource. You can use resourceUri property to associate a resource to TreeItem. For example refer to FTP Explorer example.

    • Verify that icons are extracted from File icon theme in VS Code.

  4. locked and limited conversation to collaborators on Mar 1, 2018
  5. added a commit that references this issue on Sep 6, 2026
    8bd9230
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

apifeature-requesttree-viewsverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions