Skip to content

Ref panel: don't hardcode token into line contents

Warren Gifford requested to merge mrn/dont-hardcode-token into main

Created by: mrnugget

This fixes the bug reported here: https://github.com/sourcegraph/sourcegraph/discussions/35668#discussioncomment-2825758

Previously we assumed that the token that should be highlighted in the line is the search token, but that's wrong. We need to look at the location ranges.

Test plan

  • Manually tested
  • Added unit tests

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading