(server: LspServerDefinition)
| 535 | } |
| 536 | |
| 537 | function buildDerivedCheckCommand(server: LspServerDefinition): string | null { |
| 538 | const binary = resolveServerExecutable(server)?.trim() || ""; |
| 539 | const install = normalizeInstallSpec(server); |
| 540 | |
| 541 | if (install?.kind === "manual" && install.binaryPath) { |
| 542 | return `test -x ${quoteArg(install.binaryPath)}`; |
| 543 | } |
| 544 | |
| 545 | if (binary.includes("/")) { |
| 546 | return `test -x ${quoteArg(binary)}`; |
| 547 | } |
| 548 | |
| 549 | if (binary) { |
| 550 | return `which ${quoteArg(binary)}`; |
| 551 | } |
| 552 | |
| 553 | return null; |
| 554 | } |
| 555 | |
| 556 | function getUpdateCommand(server: LspServerDefinition): string | null { |
| 557 | const launcher = server.launcher; |
no test coverage detected