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

Move Sorbet level and locate_first_within_range to RubyDocument #2435

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

vinistock
Copy link
Member

Motivation

Continuing the work to properly separate the document concerns and eventually support RBS files, both Sorbet level and locate_first_within_range are specific to Ruby files only.

Implementation

Moved both sorbet_level and locate_first_within_range to RubyDocument and updated the references accordingly.

Automated Tests

Existing tests should cover this refactor.

@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 Aug 13, 2024
@vinistock vinistock self-assigned this Aug 13, 2024
@vinistock vinistock requested a review from a team as a code owner August 13, 2024 15:11
@vinistock vinistock requested review from andyw8 and st0012 August 13, 2024 15:11
Copy link
Member

@st0012 st0012 left a comment

Choose a reason for hiding this comment

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

I think Document#locate can also be moved to RubyDocument?

@vinistock
Copy link
Member Author

I think Document#locate can also be moved to RubyDocument?

Indeed, but I wanted to try to reduce the size of the PRs as much as I could. It's implemented in #2436.

@vinistock vinistock merged commit 6c4702c into main Aug 13, 2024
35 checks passed
@vinistock vinistock deleted the vs-continue-document-concern-separation branch August 13, 2024 19:03
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.

2 participants