sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.1k stars 1.28k forks source link

Approximate matching for Symbols #59957

Open raznar opened 8 months ago

raznar commented 8 months ago

Feature request description

Would like the ability to track symbols across version updates, which allows end users to see how a symbol's use evolves over time.

Is your feature request related to a problem? If so, please describe.

Customer reports that cross-repo find references breaks when a version of a symbol has been updated but older versions of that symbol still exist. Product gap link

Describe alternatives you've considered.

None

Additional context

More information in this Slack thread

matthewnitschke-wk commented 8 months ago

For an example on why this is problematic, picture the following situation:

While increasing the frequency that Package B runs its indexing would technically address this above problem. At scale, with hundreds of packages, this problem essentially boils down to not being able to trust the results of find references at all

Having some way of running this find references search, while ignoring the version segment in the generated symbols, would allow us to rely more on the data that find references, and other precise intelligence functional can provide

matthewnitschke-wk commented 8 months ago

Worth noting that I just submitted a feature request that would resolve this problem a bit of a different way: https://github.com/sourcegraph/sourcegraph/issues/60276