File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1+ import { quoteArg } from "cm/lsp/installRuntime" ;
12import serverRegistry from "cm/lsp/serverRegistry" ;
23import settingsPage from "components/settingsPage" ;
34import 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
9192async function promptInstaller ( binaryCommand ) {
You can’t perform that action at this time.
0 commit comments