Skip to content

Commit f5efd06

Browse files
committed
vscode-ext: make Copy Command more useful
1 parent 43a47ae commit f5efd06

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

vscode-ext/src/CaesarClient.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,13 @@ export class CaesarClient {
419419
return;
420420
}
421421
const command = '"' + executable.command.replace(/(["'$`\\])/g, '\\$1') + '"';
422-
const args = executable.args!.filter(arg => !["--language-server", "--debug"].includes(arg));
422+
const args = executable.args!.filter(arg => !["--debug"].includes(arg));
423+
{ // replace lsp by verify
424+
const index = args.indexOf('lsp');
425+
if (index !== -1) {
426+
args[index] = 'verify';
427+
}
428+
}
423429
let line = `${command} ${args.join(" ")}`;
424430
let cwd = executable.options && executable.options.cwd;
425431
if (cwd !== undefined) {

0 commit comments

Comments
 (0)