fix(sqlserver): avoid false unknown column diagnostics
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user