Function
pluginKey
(
serverId: string,
rootUri: string | null | undefined,
useWorkspaceFolders?: boolean,
)
Source from the content-addressed store, hash-verified
| 62 | } |
| 63 | |
| 64 | function 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 | |
| 76 | function safeString(value: unknown): string { |
| 77 | return value != null ? String(value) : ""; |
Tested by
no test coverage detected