Skip to content

Add hover documentation for reserved keywords #3549

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

Closed

Conversation

mikeygough
Copy link

@mikeygough mikeygough commented May 28, 2025

This branch has a messed up commit history so I'm closing it. The work has been moved here.

Related to #2227

This PR adds hover documentation for the following Ruby reserved keywords:

  • case

Motivation

Ruby developers may have a better programming experience if they can hover over built-in keywords to learn more about how they work!

Implementation

This implementation follows a pattern established by the yield keyword. It adds a key value pair to the static_docs.rb KEYWORD_DOCS' hash, writes a keyword specific markdown file that goes into a deeper explanation and extends hover.rb` to handle keyword specific hover events.

Automated Tests

In Progress...

Manual Tests

Start the Ruby LSP. Use some keywords and checkout the tooltips + related documentation!

Copy link

graphite-app bot commented May 28, 2025

How to use the Graphite Merge Queue

Add the label graphite-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@mikeygough mikeygough force-pushed the add-hover-documentation-for-reserved-keywords branch from f602fe1 to f54140e Compare May 28, 2025 19:31
@mikeygough mikeygough changed the title Update Ruby version to v3.4.4 (#3541) Add hover documentation for reserved keywords May 28, 2025
@mikeygough mikeygough added enhancement New feature or request server This pull request should be included in the server gem's release notes labels May 28, 2025
@mikeygough mikeygough force-pushed the add-hover-documentation-for-reserved-keywords branch 2 times, most recently from 6c21dd7 to 6dec9e7 Compare May 28, 2025 20:21
@mikeygough mikeygough self-assigned this May 28, 2025
@mikeygough mikeygough force-pushed the add-hover-documentation-for-reserved-keywords branch 2 times, most recently from 9b07ba2 to 8d75486 Compare May 28, 2025 20:30
* find instance variable references with matched scope

* handling top level references and refactoring
@mikeygough mikeygough force-pushed the add-hover-documentation-for-reserved-keywords branch from 8d75486 to 19d0287 Compare May 28, 2025 20:39
@mikeygough mikeygough closed this May 28, 2025
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.

1 participant