Code lens for reference count
Created by: sqs
On Twitter at https://twitter.com/kzu/status/1085627963800997894, @kzu requested code lens for references instead of the current UI (hover > click "Find references") because it is more discoverable.
I much, much prefer the code lens approach. Don't have to hover to discover ;)
One other nice thing about code lens is that they make the top-level defns in a file more prominent.
The hard part is minimizing the vertical scroll jitter as the code lens are rendered. For this reason, we may want to look into other ways to display this info that do not change the vertical dimensions.
Note that "CodeLens" is a registered trademark of Microsoft (4516416 and 4849670), so we would need to come up with a different name for this (or get their permission).
The 2nd part of this feature request is to use code lens specifically for showing the reference count for top-level definitions (like VS Code does for TS/JS natively). That would likely be the first use case for this API if/when we add it.