fix(editor): refresh diagnostics after structure saves

This commit is contained in:
t8y2 committed 2026-08-02 19:46:44 +08:00
1 parent b75e7094c2
commit 2aeafa136c
8 files changed
+139 -1

No files matched your search

+4
View File
@@ -668,6 +668,10 @@ export const useQueryStore = defineStore("query", () => {
...tableStructureRefreshVersions.value,
[key]: (tableStructureRefreshVersions.value[key] ?? 0) + 1,
};
for (const tab of tabs.value) {
if (tab.mode !== "query" || tab.connectionId !== connectionId || tab.database !== database) continue;
tab.completionContextVersion = (tab.completionContextVersion ?? 0) + 1;
}
}
function tableStructureRefreshVersion(connectionId: string, database: string, schema: string | undefined, tableName: string): number {