fix(editor): prevent stale completion metadata after refresh
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user