( server: LspServerDefinition, mode: "install" | "update" = "install", )
| 584 | } |
| 585 | |
| 586 | export function getInstallCommand( |
| 587 | server: LspServerDefinition, |
| 588 | mode: "install" | "update" = "install", |
| 589 | ): string | null { |
| 590 | if (mode === "update") { |
| 591 | return getUpdateCommand(server); |
| 592 | } |
| 593 | return buildInstallCommand(server, "install"); |
| 594 | } |
| 595 | |
| 596 | export function getInstallSource(server: LspServerDefinition): string | null { |
| 597 | return normalizeInstallSpec(server)?.source || null; |
no test coverage detected