Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract icon information from resource uri representing tree item #41535

Closed
sandy081 opened this issue Jan 12, 2018 · 1 comment
Closed

Extract icon information from resource uri representing tree item #41535

sandy081 opened this issue Jan 12, 2018 · 1 comment
Assignees
Labels
api feature-request Request for new features or functionality tree-views Extension tree view issues verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@sandy081
Copy link
Member

From @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?

@sandy081 sandy081 added feature-request Request for new features or functionality api tree-views Extension tree view issues labels Jan 12, 2018
@sandy081 sandy081 added this to the January 2018 milestone Jan 12, 2018
@sandy081 sandy081 self-assigned this Jan 12, 2018
@sandy081 sandy081 added the verification-needed Verification of issue is requested label Jan 29, 2018
@sandy081
Copy link
Member Author

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.

@jrieken jrieken added the verified Verification succeeded label Jan 30, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api feature-request Request for new features or functionality tree-views Extension tree view issues verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

2 participants