Skip to content

Conversation

@rafaelfranca
Copy link
Member

@rafaelfranca rafaelfranca commented Jan 22, 2026

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

Using unknown is safer than any because it forces you to narrow the type
(like casting to Error) before accessing properties, preventing runtime
errors.
Just make this implementation clearer by introducing intermediate
variables.
@rafaelfranca rafaelfranca changed the title Extract logic to check for Windows platform into a helper function and use it across the codebase More refactoring to VersionManager Jan 22, 2026
Copy link
Member Author

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.

@rafaelfranca rafaelfranca 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Chore task vscode This 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.

1 participant