Skip to content

More refactoring to VersionManager - #3918

Draft
rafaelfranca wants to merge 7 commits into
rm-refactor-version-managerfrom
rm-refactor-2
Draft

More refactoring to VersionManager#3918
rafaelfranca wants to merge 7 commits into
rm-refactor-version-managerfrom
rm-refactor-2

Conversation

@rafaelfranca

@rafaelfrancarafaelfranca commented Jan 22, 2026

Copy link
Copy Markdown
Member

Extract logic to check for Windows platform into a helper function and use it across the codebase.

Make sure all errors interface are the same for the ruby version managers.

Use unknown instead of error.

Using unknown is safer than any because it forces you to narrow the type
(like casting to Error) before accessing properties, preventing runtime
errors.

Extract helper to build the ruby executable uri

Extract method to check if a path exists in the filesystem

Improve sorting logic in Chruby version selection

Just make this implementation clearer by introducing intermediate
variables.

Improve documentation of Chruby and VersionManager

@rafaelfrancarafaelfranca changed the title Extract logic to check for Windows platform into a helper function and use it across the codebaseMore refactoring to VersionManagerJan 22, 2026
@rafaelfrancaGraphite App

Copy link
Copy Markdown
MemberAuthor

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


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.

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

@rafaelfrancarafaelfranca added chore Chore task vscode This pull request should be included in the VS Code extension's release notes labels Jan 22, 2026 — with Graphite App
@graphite-app
graphite-appBotforce-pushed the rm-refactor-version-manager branch 2 times, most recently from e1bf26b to 4485199CompareJanuary 26, 2026 17:18
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

choreChore taskvscodeThis pull request should be included in the VS Code extension's release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@rafaelfranca@vinistock