Skip to content
Snippets Groups Projects

codeintel: Add local parameter to reference queries

Closed Warren Gifford requested to merge pci-query-local-refs into master

Created by: efritz

Add a local parameter to reference queries so that it returns results only within the same file. This will aid in https://github.com/sourcegraph/sourcegraph/issues/10868, which highlights local references to the symbol being hovered.

This changes the resolution of references over pages by marking a paginating resolver as "local" or not (non local has previous behavior). Local resolvers will stop after the second phase and will not open any additional dump files. Additionally, each location is post-filtered to ensure the path matches the input path.

Merge request reports

Closed by avatar (Jul 12, 2025 5:46am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading