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

Check target precision for call node in hover and definition #2870

Conversation

vinistock
Copy link
Member

@vinistock vinistock commented Nov 18, 2024

Motivation

Closes #2846

We had a regression in our call node target precisions. Essentially, the call node covers both the receiver and the message, but we only want to make the call node the target is the position covers the message location exactly.

Implementation

Added another branch to the checks for whether the position is covered or not.

Automated Tests

Added tests to ensure we don't regress.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock force-pushed the 11-18-check_target_precision_for_call_node_in_hover_and_definition branch from 3b93343 to 06fc55a Compare November 18, 2024 14:58
@vinistock vinistock added server This pull request should be included in the server gem's release notes bugfix This PR will fix an existing bug labels Nov 18, 2024 — with Graphite App
@vinistock vinistock marked this pull request as ready for review November 18, 2024 15:00
@vinistock vinistock requested a review from a team as a code owner November 18, 2024 15:00
@vinistock vinistock merged commit 50daa53 into main Nov 18, 2024
38 of 39 checks passed
@vinistock vinistock deleted the 11-18-check_target_precision_for_call_node_in_hover_and_definition branch November 18, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Method information shown on hover/click of the receiver
2 participants