Skip to content

codeintel: Add local parameter to reference queries

Administrator 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

Loading