fix(sqlserver): avoid false unknown column diagnostics

This commit is contained in:
t8y2 committed 2026-05-27 23:07:47 +08:00
1 parent 9b702b86bf
commit ac4313afee
5 files changed
+132 -5

No files matched your search

@@ -1419,6 +1419,9 @@ export const useConnectionStore = defineStore("connection", () => {
table: string,
schema?: string,
): Promise<SqlCompletionColumn[]> {
if (isSchemaAwareDatabase(connectionId) && !schema) {
return [];
}
const cacheKey = `${connectionId}:${database}:${schema || ""}:${table}`;
if (!completionColumnsCache.value[cacheKey]) {
await ensureConnected(connectionId);