Skip to content

Handle visibility in hover#4097

Merged
vinistock merged 1 commit intorubydex_adoption_feature_branchfrom
vs_handle_visibility_in_hover
May 8, 2026
Merged

Handle visibility in hover#4097
vinistock merged 1 commit intorubydex_adoption_feature_branchfrom
vs_handle_visibility_in_hover

Conversation

@vinistock
Copy link
Copy Markdown
Member

@vinistock vinistock commented May 7, 2026

Motivation

This PR starts using the new visibility APIs to handle hover correctly.

Implementation

This PR is based on the go to definition branch, so I extracted the helpers into Common and used it for both.

Automated Tests

Added tests ensuring we only show hover for reachable methods and constants.

@vinistock vinistock requested review from Morriar, alexcrocha and st0012 May 7, 2026 22:48
@vinistock vinistock self-assigned this May 7, 2026
@vinistock vinistock requested a review from a team as a code owner May 7, 2026 22:48
@vinistock vinistock added server This pull request should be included in the server gem's release notes other Changes that aren't bugfixes, enhancements or breaking changes labels May 7, 2026
@vinistock vinistock mentioned this pull request May 7, 2026
19 tasks
Comment thread lib/ruby_lsp/requests/support/common.rb
@vinistock vinistock force-pushed the vs_handle_visibility_in_definition branch from 303127b to 8d34acd Compare May 8, 2026 13:59
@vinistock vinistock force-pushed the vs_handle_visibility_in_hover branch from 2b8cb77 to bc7e06a Compare May 8, 2026 13:59
Base automatically changed from vs_handle_visibility_in_definition to rubydex_adoption_feature_branch May 8, 2026 16:03
@vinistock vinistock force-pushed the vs_handle_visibility_in_hover branch from bc7e06a to 5dfd9f8 Compare May 8, 2026 16:05
@vinistock vinistock merged commit 2d53dfa into rubydex_adoption_feature_branch May 8, 2026
33 checks passed
@vinistock vinistock deleted the vs_handle_visibility_in_hover branch May 8, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

other Changes that aren't bugfixes, enhancements or breaking changes 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.

3 participants