Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "Find references" bug for interfaces and types #682

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

olafurpg
Copy link
Member

@olafurpg olafurpg commented Feb 2, 2024

Fixes #678

Previously, doing "Find references" on a symbol with kind INTERFACE or TYPE returned results for all references to symbols that implement that symbol. This bug was particularly noticeable for Kotlin sources because scip-kotlin emits the TYPE kind for classes. Now, we no longer emit reference relationships so the implementations only appear in "Find implementation" and not "Find references".

Test plan

Green CI. See updated snapshots.

Fixes #678

Previously, doing "Find references" on a symbol with kind `INTERFACE` or
`TYPE` returned results for all references to symbols that *implement*
that symbol. This bug was particularly noticeable for Kotlin sources because
scip-kotlin emits the `TYPE` kind for classes. Now, we no longer emit
reference relationships so the implementations only appear in "Find
implementation" and not "Find references".
@olafurpg olafurpg merged commit e4c4ffb into main Feb 2, 2024
12 checks passed
@keynmol keynmol deleted the olafurpg/reference-relationships branch February 2, 2024 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kotlin find references shows refs for wrong symbol
2 participants