( server: LspServerDefinition, mode: "install" | "update" = "install", context?: LspRuntimeContext, )
| 76 | } |
| 77 | |
| 78 | export async function getRuntimeInstallCommand( |
| 79 | server: LspServerDefinition, |
| 80 | mode: "install" | "update" = "install", |
| 81 | context?: LspRuntimeContext, |
| 82 | ): Promise<string | null> { |
| 83 | const settingsContext = getSettingsContext(server, context, "command"); |
| 84 | const provider = await getProvider(server, context, "command"); |
| 85 | return ( |
| 86 | provider?.getInstallCommand?.( |
| 87 | server, |
| 88 | settingsContext, |
| 89 | mode, |
| 90 | ) ?? null |
| 91 | ); |
| 92 | } |
| 93 | |
| 94 | export async function getRuntimeUninstallCommand( |
| 95 | server: LspServerDefinition, |
no test coverage detected