Skip to content

Commit 4bb0ac8

Browse files
committed
fix
1 parent eeb65cf commit 4bb0ac8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/settings/lspSettings.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { quoteArg } from "cm/lsp/installRuntime";
12
import serverRegistry from "cm/lsp/serverRegistry";
23
import settingsPage from "components/settingsPage";
34
import toast from "components/toast";
@@ -80,12 +81,12 @@ function buildDefaultCheckCommand(binaryCommand, installer) {
8081
).trim();
8182
if (!executable) return "";
8283
if (installer?.kind === "manual" && installer?.binaryPath) {
83-
return `test -x ${installer.binaryPath}`;
84+
return `test -x ${quoteArg(installer.binaryPath)}`;
8485
}
8586
if (executable.includes("/")) {
86-
return `test -x ${executable}`;
87+
return `test -x ${quoteArg(executable)}`;
8788
}
88-
return `which ${executable}`;
89+
return `which ${quoteArg(executable)}`;
8990
}
9091

9192
async function promptInstaller(binaryCommand) {

0 commit comments

Comments
 (0)