vscode-todo-plus
vscode-todo-plus copied to clipboard
Add a badge to the activity bar icon
Do you think it is possible to include the number of TODOs in the sidebar's icon like other extensions do?
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!
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.
As @nealot said I don't think there's an API available for doing that at the moment.
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.
Issue for allowing extensions to contribute activity bar badges: https://github.com/Microsoft/vscode/issues/62783
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.