Created by: chrismwendt
Prior to this change, the "Find references" button would show up everywhere: on whitespace, comments, and punctuation.
After this change, the "Find references" button will only appear when a definition is found.
Pros/cons:
Alternatively, this could be implemented by adding hasReferences(pos): boolean
to the Sourcegraph extension API, which would give more control to extensions. The implementation in this PR was dead easy, so I thought I'd propose it first.
Code nav team (@lguychard @felixfbecker @vanesa) I'm curious if you have thoughts on this