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

Function toKey

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

Source from the content-addressed store, hash-verified

16const providers = new Map<string, LspRuntimeProvider>();
17
18function toKey(id: string | null | undefined): string {
19 return String(id ?? "")
20 .trim()
21 .toLowerCase();
22}
23
24function normalizeProvider(
25 provider: LspRuntimeProvider,

Callers 3

normalizeProviderFunction · 0.70
getRuntimeProviderFunction · 0.70

Calls 1

StringInterface · 0.85

Tested by

no test coverage detected