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

Refactor client capabilities into its own class #2805

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

vinistock
Copy link
Member

Motivation

As pointed out by @andyw8, our implementation of the global state was growing a little too much and so was the body of apply_options. This PR extracts a new object to store client capabilities, so that we can organize concerns a bit better.

Implementation

Extracted the client capabilities into an object and adapted the code that was using them for the new structure.

Automated Tests

Updated existing tests.

@vinistock vinistock added breaking-change Non-backward compatible change server This pull request should be included in the server gem's release notes labels Oct 30, 2024
@vinistock vinistock self-assigned this Oct 30, 2024
@vinistock vinistock requested a review from a team as a code owner October 30, 2024 19:36
lib/ruby_lsp/requests/rename.rb Outdated Show resolved Hide resolved
@vinistock vinistock force-pushed the vs-refactor-client-capabilities branch from ee7fd05 to 9bab406 Compare October 30, 2024 20:49
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @vinistock and the rest of your teammates on Graphite Graphite

@vinistock vinistock merged commit 4d885c5 into main Oct 30, 2024
37 checks passed
@vinistock vinistock deleted the vs-refactor-client-capabilities branch October 30, 2024 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Non-backward compatible change 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