-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract Ruby fallback cancellable flow (#2911)
### Motivation This PR makes the cancellable logic used in Chruby activation reusable, so that we can use it for two purposes 1. The fallback for when no `.ruby-version` is found (already in place) 2. The fallback for when the version specified in `.ruby-version` is not installed The cancellable flow does a lot of little things, like waiting a few seconds, allowing the user to cancel and then define fallbacks for the system or for the Ruby LSP and implementing it twice would result in a lot of duplication. ### Implementation This PR just extracts the cancellable flow into a function we can customize.
- Loading branch information
Showing
1 changed file
with
30 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters