(connectionId?: string)
| 95 | |
| 96 | // Clear cache for a specific connection (call on disconnect) |
| 97 | export const clearAutocompleteCache = (connectionId?: string) => { |
| 98 | if (connectionId) { |
| 99 | const keysToDelete = Array.from(columnsCache.keys()) |
| 100 | .filter(key => key.startsWith(`${connectionId}:`)); |
| 101 | keysToDelete.forEach(key => columnsCache.delete(key)); |
| 102 | } else { |
| 103 | columnsCache.clear(); |
| 104 | } |
| 105 | }; |
| 106 | |
| 107 | let sqlCompletionProvider: { dispose: () => void } | null = null; |
| 108 |
no outgoing calls
no test coverage detected