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

Function toKey

src/cm/lsp/serverRegistry.ts:22–26  ·  view source on GitHub ↗
(id: string | undefined | null)

Source from the content-addressed store, hash-verified

20const listeners = new Set<RegistryEventListener>();
21
22function toKey(id: string | undefined | null): string {
23 return String(id ?? "")
24 .trim()
25 .toLowerCase();
26}
27
28function clone<T>(value: T): T | undefined {
29 if (!value || typeof value !== "object") return undefined;

Callers 5

sanitizeDefinitionFunction · 0.70
unregisterServerFunction · 0.70
updateServerFunction · 0.70
getServerFunction · 0.70
getServersForLanguageFunction · 0.70

Calls 1

StringInterface · 0.85

Tested by

no test coverage detected