From bc26ab0244464482db52a847cbd5757a20632630 Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Mon, 13 Jan 2025 15:41:54 +0000 Subject: [PATCH 1/2] Replace interpolated string pattern with regexp --- vscode/src/rubyLsp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vscode/src/rubyLsp.ts b/vscode/src/rubyLsp.ts index 54f1b2f6c..5c956af45 100644 --- a/vscode/src/rubyLsp.ts +++ b/vscode/src/rubyLsp.ts @@ -626,7 +626,7 @@ export class RubyLsp { delete newConfig.useBundler; const command = (newConfig.command || "").replace( - "${workspaceRoot}/", + /\$\{workspaceRoot\}\//, "", ); const script = newConfig.script || ""; From ac287b77b46f87b9341bf21698a4b88fc6b0404d Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Mon, 13 Jan 2025 15:56:50 +0000 Subject: [PATCH 2/2] Update vscode/src/rubyLsp.ts Co-authored-by: Ufuk Kayserilioglu --- vscode/src/rubyLsp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vscode/src/rubyLsp.ts b/vscode/src/rubyLsp.ts index 5c956af45..7a9debcf0 100644 --- a/vscode/src/rubyLsp.ts +++ b/vscode/src/rubyLsp.ts @@ -626,7 +626,7 @@ export class RubyLsp { delete newConfig.useBundler; const command = (newConfig.command || "").replace( - /\$\{workspaceRoot\}\//, + `\${workspaceRoot}/`, "", ); const script = newConfig.script || "";