Skip to content

Use NodeContext from RubyLSP to fix Definition targetting #397

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

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

andyw8
Copy link
Contributor

@andyw8 andyw8 commented Jun 3, 2024

We made an addition to Ruby LSP which to add call node information to NodeContext. This means we can now fix the Ruby LSP Rails beahavior for various DSL calls.

For example, previously when you had an association has_many :widgets, the Go To Definition feature would only work if triggered on the has_many token. Now it works for the :widgets token, as originally intended.

@andyw8 andyw8 force-pushed the andyw8/use-ruby-lsp-nodecontext branch from 1f03ae7 to 70b1e4a Compare June 5, 2024 20:21
@andyw8 andyw8 force-pushed the andyw8/use-ruby-lsp-nodecontext branch from 70b1e4a to 9c4d411 Compare June 5, 2024 20:22
@andyw8 andyw8 added the bugfix This PR fixes an existing bug label Jun 5, 2024
@andyw8 andyw8 marked this pull request as ready for review June 10, 2024 19:24
@andyw8 andyw8 requested a review from a team as a code owner June 10, 2024 19:24
@andyw8 andyw8 requested review from st0012 and vinistock June 10, 2024 19:24
Copy link
Member

@vinistock vinistock left a comment

Choose a reason for hiding this comment

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

Just a minor comment

@andyw8 andyw8 force-pushed the andyw8/use-ruby-lsp-nodecontext branch from 576f253 to 0c486f8 Compare June 10, 2024 21:18
@andyw8 andyw8 enabled auto-merge (squash) June 10, 2024 21:18
@andyw8 andyw8 disabled auto-merge June 10, 2024 21:25
@andyw8 andyw8 force-pushed the andyw8/use-ruby-lsp-nodecontext branch from 0c486f8 to 79a0329 Compare June 10, 2024 21:27
@andyw8 andyw8 force-pushed the andyw8/use-ruby-lsp-nodecontext branch from 79a0329 to d9b6661 Compare June 10, 2024 21:28
@andyw8 andyw8 enabled auto-merge (squash) June 10, 2024 21:30
@andyw8 andyw8 merged commit 02c6014 into main Jun 10, 2024
40 checks passed
@andyw8 andyw8 deleted the andyw8/use-ruby-lsp-nodecontext branch June 10, 2024 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants