feat(core): center peek open doc should only load doc when idle (#10023)

fix AF-2183
This commit is contained in:
pengx17
2025-02-11 04:56:23 +00:00
parent b1d7128e2b
commit d89d4a71dd
5 changed files with 113 additions and 47 deletions

View File

@@ -64,6 +64,14 @@ export class DocsService extends Service {
super();
}
loaded(docId: string) {
const exists = this.pool.get(docId);
if (exists) {
return { doc: exists.obj, release: exists.release };
}
return null;
}
open(docId: string) {
const docRecord = this.list.doc$(docId).value;
if (!docRecord) {