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

LS: Fix hover definition lookup logic #5603

Merged
merged 1 commit into from
May 22, 2024
Merged

LS: Fix hover definition lookup logic #5603

merged 1 commit into from
May 22, 2024

Conversation

mkaput
Copy link
Contributor

@mkaput mkaput commented May 22, 2024

Since ba74ab1 the hover logic wrongly
tried to find definition lookup item by inspecting originating location
within get_definition_location. The bug was introduced by making an
attempt to share the definition lookup logic with goto definition,
where actually both features need different results.


Stack:

⚠️ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.


This change is Reviewable

Copy link
Collaborator

@orizi orizi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @mkaput)

Base automatically changed from spr/main/710e9404 to main May 22, 2024 06:28
Since ba74ab1 the hover logic wrongly
tried to find definition lookup item by inspecting originating location
within `get_definition_location`. The bug was introduced by making an
attempt to share the definition lookup logic with _goto definition_,
where actually both features need different results.

commit-id:f3e136e6
@mkaput mkaput enabled auto-merge May 22, 2024 07:03
@mkaput mkaput added this pull request to the merge queue May 22, 2024
Merged via the queue into main with commit 051706b May 22, 2024
42 of 43 checks passed
@mkaput mkaput deleted the spr/main/f3e136e6 branch May 22, 2024 07:19
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.

2 participants