vscode-todo-plus icon indicating copy to clipboard operation
vscode-todo-plus copied to clipboard

Add a badge to the activity bar icon

Open claudiodangelis opened this issue 5 years ago • 5 comments

Do you think it is possible to include the number of TODOs in the sidebar's icon like other extensions do?

image

In the screenshot, the git extension icon shows the number of pending changes.

If possible, I would like to help you on this, thank you!

claudiodangelis avatar Aug 14 '18 10:08 claudiodangelis

Unfortunately there is no api to implement this but it would be very cool to have. I think the issue for this is https://github.com/Microsoft/vscode/issues/38426. There might be another issue specifically mentioning activity bar badges, but I can't seem to recall it.

ghost avatar Aug 14 '18 18:08 ghost

As @nealot said I don't think there's an API available for doing that at the moment.

fabiospampinato avatar Aug 15 '18 11:08 fabiospampinato

It looks like some badges can be actually added to the tree for file items. Maybe I'll look into that, but I would also like to be able to add badges to other kinds of tree items thought, i.e. projects and types, so maybe I'll wait until that's also implemented.

fabiospampinato avatar Aug 15 '18 17:08 fabiospampinato

Issue for allowing extensions to contribute activity bar badges: https://github.com/Microsoft/vscode/issues/62783

usernamehw avatar Nov 10 '18 13:11 usernamehw

For anyone watching this issue, the adding badges to activity bar icons feature seems to be in-progress as of yesterday, Tuesday, January 18, 2021.

By the way, this issue is the second search result for me after searching

vscode add badge api

so I imagine other people will end up here, too, when searching for how to add badges to activity bar icons.

Screen Shot 2022-01-19 at 8 54 06 AM

hamirmahal avatar Jan 19 '22 16:01 hamirmahal