(server: LspServerDefinition)
| 554 | } |
| 555 | |
| 556 | function getUpdateCommand(server: LspServerDefinition): string | null { |
| 557 | const launcher = server.launcher; |
| 558 | if (!launcher) return null; |
| 559 | if ( |
| 560 | typeof launcher.updateCommand === "string" && |
| 561 | launcher.updateCommand.trim() |
| 562 | ) { |
| 563 | return launcher.updateCommand.trim(); |
| 564 | } |
| 565 | return buildInstallCommand(server, "update"); |
| 566 | } |
| 567 | |
| 568 | async function readServerVersion( |
| 569 | server: LspServerDefinition, |
no test coverage detected