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

Index all missing global variable nodes #2699

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

snutij
Copy link
Contributor

@snutij snutij commented Oct 9, 2024

Motivation

Iteration of #2644
The first PR to index global variables (#2656) focused only on RBS declarations. This covers only partial use cases, as it is possible for a user to define their own global variables.

Implementation

From prism/config.yml, listen to all kinds of global variable writing nodes, and push GlobalVariable entries into the index.

Automated Tests

Added a new file with all kinds of global variable writing.

Manual Tests

Because I have already merged go-to-definition changes for global variables, we can already check that it's working.

Kapture.2024-10-09.at.22.49.02.mp4

@snutij snutij requested a review from a team as a code owner October 9, 2024 20:56
@andyw8 andyw8 added the enhancement New feature or request label Oct 10, 2024
Copy link
Contributor

@andyw8 andyw8 left a comment

Choose a reason for hiding this comment

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

Thank you!

@andyw8 andyw8 added the server This pull request should be included in the server gem's release notes label Oct 10, 2024
@andyw8 andyw8 merged commit b6cfb22 into Shopify:main Oct 10, 2024
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 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.

2 participants