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

Ensure default gem path is also in document selector #2738

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

vinistock
Copy link
Member

Motivation

See #2709 (comment)

The default gem path is ~/rubies/3.3.1/lib/ruby/gems/3.3.0. We were correcting this to be ~/rubies/3.3.1/lib/ruby/3.3.0 because that's where default gems are installed.

However, some version managers still install gems under the non corrected path ~/rubies/3.3.1/lib/ruby/gems/3.3.0.

Implementation

We need to include both paths in the document selector. The normal path will account for version managers that install gems under the default directory and the corrected one will guarantee we handle requests for default gems.

@vinistock vinistock added bugfix This PR will fix an existing bug vscode This pull request should be included in the VS Code extension's release notes labels Oct 18, 2024
@vinistock vinistock self-assigned this Oct 18, 2024
@vinistock vinistock requested a review from a team as a code owner October 18, 2024 20:18
@vinistock vinistock merged commit 1d84257 into main Oct 22, 2024
34 checks passed
@vinistock vinistock deleted the vs-ensure-default-gem-path-is-in-selector branch October 22, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR will fix an existing bug 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.

2 participants