diff --git a/src/client.ts b/src/client.ts index 96b28910..c8300ef6 100644 --- a/src/client.ts +++ b/src/client.ts @@ -543,15 +543,17 @@ export default class Client implements ClientInterface { options: executableOptions, }; } else { + const argsWithBranch = branch.length > 0 ? ["--branch", branch] : []; + run = { command: "ruby-lsp", - args: branch.length > 0 ? ["--branch", branch] : [], + args: argsWithBranch, options: executableOptions, }; debug = { command: "ruby-lsp", - args: ["--debug"], + args: argsWithBranch.concat(["--debug"]), options: executableOptions, }; }