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

Function resetInstallState

src/cm/lsp/serverLauncher.ts:660–672  ·  view source on GitHub ↗
(serverId?: string)

Source from the content-addressed store, hash-verified

658}
659
660export function resetInstallState(serverId?: string): void {
661 if (!serverId) {
662 checkedCommands.clear();
663 return;
664 }
665
666 const prefix = `${serverId}:`;
667 for (const key of Array.from(checkedCommands.keys())) {
668 if (key.startsWith(prefix)) {
669 checkedCommands.delete(key);
670 }
671 }
672}
673
674async function ensureInstalled(server: LspServerDefinition): Promise<boolean> {
675 const launcher = server.launcher;

Callers 2

installServerFunction · 0.85
uninstallServerFunction · 0.85

Calls 2

deleteMethod · 0.65
clearMethod · 0.45

Tested by

no test coverage detected