(
server: LspServerDefinition,
options: { promptConfirm?: boolean } = {},
context?: LspRuntimeContext,
)
| 63 | } |
| 64 | |
| 65 | export async function uninstallRuntimeServer( |
| 66 | server: LspServerDefinition, |
| 67 | options: { promptConfirm?: boolean } = {}, |
| 68 | context?: LspRuntimeContext, |
| 69 | ): Promise<boolean> { |
| 70 | const settingsContext = getSettingsContext(server, context, "uninstall"); |
| 71 | const provider = await getProvider(server, context, "uninstall"); |
| 72 | if (!provider?.uninstall) { |
| 73 | throw new Error("The selected runtime does not support uninstall."); |
| 74 | } |
| 75 | return provider.uninstall(server, settingsContext, options); |
| 76 | } |
| 77 | |
| 78 | export async function getRuntimeInstallCommand( |
| 79 | server: LspServerDefinition, |
no test coverage detected