I\'m building a VS Code extension and it uses a TreeDataProvider to create a list of items. The list has nested children and I would like to show a count for th
Support for custom decorations in views appears to be a work-in-progress. There has been an API for it in the "proposed state" for a while, see:
Source Control and Problem decorations already shown in custom views if TreeView.resourceUri is set.
SourceControlResourceState instance can have decorations attached to it. That would be how the Git extension you mentioned does it.