fix(editor): prevent stale completion metadata after refresh

This commit is contained in:
zipg authored and GitHub committed 2026-08-21 12:22:14 +08:00
1 parent 4bf7551b82
commit 4a22889b17
4 files changed
+275 -37

No files matched your search

@@ -5522,6 +5522,16 @@ watch(
},
);
watch(
() => connectionStore.completionCacheRevision(props.connectionId, props.database),
() => {
completionEpoch++;
refreshCompletionCache();
setSemanticDiagnostics([]);
scheduleSemanticDiagnostics();
},
);
watch([() => props.clientSessionId, () => props.completionContextVersion], () => {
completionEpoch++;
refreshCompletionCache();