fix editor search focus layout error

This commit is contained in:
codetypes committed 2025-03-23 21:43:12 +08:00
1 parent 4a2116dd4f
commit 645a88f661
7 files changed
+76 -53

No files matched your search

+3 -3
View File
@@ -176,7 +176,7 @@ export type WorkspaceStore = {
close: (path: string) => void;
find: (path: string) => EditorStore | undefined;
relative: (path: string) => string;
refresh: (path: string) => void;
refresh: (path: string) => boolean;
save: () => void;
saveAs: () => void;
@@ -592,9 +592,9 @@ export const useWorkspace = create<WorkspaceStore>((set, get) => ({
const workspace = get();
const editor = workspace.editors.find((v) => v.path === path);
if (!editor) {
return;
return false;
}
b3util.refreshDeclare(editor.root, editor.data.group, editor.declare);
return b3util.refreshDeclare(editor.root, editor.data.group, editor.declare);
},
save: () => {