src/vs/workbench/contrib/comments/browser/commentsTreeViewer.ts/CommentsList/getVisibleItemCount
class CommentsList:	getVisibleItemCount(): number {
		let filtered = 0;
		const root = this.getNode();

		for (const resourceNode of root.children) {
			for (const commentNode of resourceNode.children) {
				if (commentNode.visible && resourceNode.visible) {
					filtered++;
				}
			}
		}

		return filtered;
	}