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

Function pluginKey

src/cm/lsp/clientManager.ts:64–74  ·  view source on GitHub ↗
(
  serverId: string,
  rootUri: string | null | undefined,
  useWorkspaceFolders?: boolean,
)

Source from the content-addressed store, hash-verified

62}
63
64function pluginKey(
65 serverId: string,
66 rootUri: string | null | undefined,
67 useWorkspaceFolders?: boolean,
68): string {
69 // For workspace folders mode, use just the server ID (one client per server type)
70 if (useWorkspaceFolders) {
71 return serverId;
72 }
73 return `${serverId}::${rootUri ?? "__global__"}`;
74}
75
76function safeString(value: unknown): string {
77 return value != null ? String(value) : "";

Callers 1

#ensureClientMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected