MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / uninstallRuntimeServer

Function uninstallRuntimeServer

src/cm/lsp/runtimeActions.ts:65–76  ·  view source on GitHub ↗
(
	server: LspServerDefinition,
	options: { promptConfirm?: boolean } = {},
	context?: LspRuntimeContext,
)

Source from the content-addressed store, hash-verified

63}
64
65export 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
78export async function getRuntimeInstallCommand(
79 server: LspServerDefinition,

Callers 1

callbackFunction · 0.90

Calls 2

getSettingsContextFunction · 0.85
getProviderFunction · 0.85

Tested by

no test coverage detected