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

Function removeCustomServer

src/settings/lspConfigUtils.js:138–145  ·  view source on GitHub ↗
(serverId)

Source from the content-addressed store, hash-verified

136}
137
138export async function removeCustomServer(serverId) {
139 const key = normalizeServerId(serverId);
140 const current = cloneLspSettings();
141 current.servers = current.servers || {};
142 delete current.servers[key];
143 await appSettings.update({ lsp: current }, false);
144 lspApi.servers.unregister(key);
145}

Callers 1

callbackFunction · 0.90

Calls 3

normalizeServerIdFunction · 0.85
cloneLspSettingsFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected