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

sameids: highlight package references correctly #3469

Merged
merged 2 commits into from
Dec 1, 2022

Conversation

bhcleek
Copy link
Collaborator

@bhcleek bhcleek commented Nov 30, 2022

sameids: fix handling of package identifiers

Do not assume that the length of each reference to an identifier is the
same. This is important for packages where the references may be the
import path or the package name. e.g. "net/http" and "http" reference
the same package and gopls results include both forms.

sameids: refactor same ids

Extract sameids functionality to its own file and eliminate the need for
the guru adapter over the LSP handler result.

Fixes #3468

Do not assume that the length of each reference to an identifier is the
same. This is important for packages where the references may be the
import path or the package name. e.g. "net/http" and "http" reference
the same package and gopls results include both forms.
Extract sameids functionality to its own file and eliminate the need for
the guru adapter over the LSP handler result.
@bhcleek bhcleek added this to the vim-go v1.27 milestone Nov 30, 2022
@bhcleek bhcleek merged commit c609057 into fatih:master Dec 1, 2022
@bhcleek bhcleek deleted the sameids/packages branch December 1, 2022 03:13
bhcleek added a commit that referenced this pull request Dec 1, 2022
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.

GoSameIds incorrectly highlights package names
1 participant