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

Badges in custom views and containers #38426

Closed
kubawolanin opened this issue Nov 15, 2017 · 6 comments
Closed

Badges in custom views and containers #38426

kubawolanin opened this issue Nov 15, 2017 · 6 comments
Assignees
Labels
feature-request Request for new features or functionality tree-views Extension tree view issues
Milestone

Comments

@kubawolanin
Copy link

kubawolanin commented Nov 15, 2017

Follow up to microsoft/vscode-extension-samples#41

As a user extension developer I'd like to be able to display a "countBadge" in the TreeView label.
My use case scenario - I have two TreeViews filled with data from a given REST API response.
I'd like to know how many items are in the tree.

See the following screen demonstrating openHAB extension.

A badge like that is visible e.g. in the Git extension:

Thank you for your hard work!

@octref octref assigned sandy081 and unassigned octref Nov 15, 2017
@sandy081 sandy081 added tree-views Extension tree view issues feature-request Request for new features or functionality labels Nov 16, 2017
@sandy081 sandy081 added this to the Backlog milestone Nov 16, 2017
@fabiospampinato
Copy link
Contributor

fabiospampinato commented Nov 17, 2017

This could be useful.

@kubawolanin in the meantime you may display them as text, like (1) or (3) for instance. They could probably also be vertically aligned just by adding some spaces before them.

Another option is to add this information in the tooltip, so that A custom tooltip will become A custom tooltip - 3 items or something.

@weinand weinand changed the title Feature Request: Badges in Tree View Badges in Tree View Nov 29, 2017
@Gruntfuggly
Copy link

Now that views can be placed in custom containers, it would also be nice to have bades for the containers.

@sandy081
Copy link
Member

Duplicate of #47502 and #54938

@sandy081
Copy link
Member

Decorations support (including badges) for file resources is supported. Requires #54938 for non file based resources

@sandy081 sandy081 added the *duplicate Issue identified as a duplicate of another issue(s) label Aug 15, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 29, 2018
@sandy081 sandy081 changed the title Badges in Tree View Badges in custom views and containers Sep 29, 2020
@sandy081 sandy081 removed the *duplicate Issue identified as a duplicate of another issue(s) label Sep 29, 2020
@sandy081
Copy link
Member

I am really sorry that I do not remember why I made this as a duplicate of file decorations API.

Reopening it for badges support in custom views and view containers.

@alexr00
Copy link
Member

alexr00 commented Nov 6, 2020

Duplicate of #62783

@alexr00 alexr00 marked this as a duplicate of #62783 Nov 6, 2020
@alexr00 alexr00 closed this as completed Nov 6, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality tree-views Extension tree view issues
Projects
None yet
Development

No branches or pull requests

6 participants