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

replaced occurrences of node.slice with node.full_name #1287

Merged

Conversation

haiderashfaq
Copy link
Contributor

@haiderashfaq haiderashfaq commented Jan 8, 2024

Resolves #1130

replaced occurrences of node.slice with node.full_name
handled Prism::ConstantPathNode::DynamicPartsInConstantPathError with full_name

previously opened PR reference #1131

was waiting on ruby/prism#1742 to get merged.

@haiderashfaq haiderashfaq requested a review from a team as a code owner January 8, 2024 17:05
@egiurleo egiurleo requested a review from vinistock January 9, 2024 14:35
test/requests/completion_test.rb Outdated Show resolved Hide resolved
lib/ruby_lsp/requests/completion.rb Outdated Show resolved Hide resolved
@haiderashfaq haiderashfaq force-pushed the replace_node_slice_with_full_name branch from 32566db to 143c0ce Compare February 7, 2024 03:43
@vinistock
Copy link
Member

The changes look good to me, but there are some type checking errors that have to be resolved. When we can't figure out the constant names, we should return early in most of them.

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.

Thanks for the contribution!

@vinistock vinistock merged commit 1159866 into Shopify:main Feb 9, 2024
16 checks passed
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.

Switch from using node.slice to node.full_name for constant paths
2 participants