feat(editor): 持久化SQL编辑器光标位置

Co-authored-by: zipg <4047349+zipg@users.noreply.github.com>
This commit is contained in:
zipgandzipg authored and GitHub committed 2026-09-08 11:01:41 +08:00
1 parent 772ce36de8
commit 5fb667716f
7 files changed
+52 -2

No files matched your search

@@ -244,6 +244,7 @@ const emit = defineEmits<{
closeColumnPanel: [];
viewportChange: [viewport: { scrollTop: number; scrollLeft: number }];
selectionStateChange: [selection: { anchor: number; head: number }];
editorStateFlushed: [];
sendSelectionToAi: [sql: string];
}>();
@@ -6983,6 +6984,7 @@ function pauseQueryEditorBackgroundWork() {
cancelBatchColumnSelectionRefresh();
flushEditorViewport();
flushEditorSelection();
emit("editorStateFlushed");
clearTableNavigationHover();
clearPendingCompletionEnter();
clearPendingCompletionTab();