Skip to content

Commit

Permalink
Fix false positive in gem list matching (#2012)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock committed May 6, 2024
1 parent 3ec8431 commit 670b6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vscode/src/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class Workspace implements WorkspaceInterface {
});

// If the gem is not yet installed, install it
if (!stdout.includes("ruby-lsp")) {
if (!/^ruby-lsp[\s]/.exec(stdout)) {
await asyncExec("gem install ruby-lsp", {
cwd: this.workspaceFolder.uri.fsPath,
env: this.ruby.env,
Expand Down

0 comments on commit 670b6ba

Please sign in to comment.