Skip to content

codeintel: Token-click jump to definition

Administrator requested to merge token-click-j2d into main

Created by: chrismwendt

This makes clicking on a token jump to its definition.

https://user-images.githubusercontent.com/1387653/144978118-af423845-c201-428d-bc92-07a1feb36fe9.mp4

It doesn't interfere with selecting text:

CleanShot 2021-12-07 at 10 05 42

Try it out:

TODO

  • Do the same for references when you're already on the definition
  • Record telemetry to track token-clicks for defs/refs vs hover popover

Resolves https://github.com/sourcegraph/sourcegraph/issues/28036

Merge request reports

Loading