feat(core): center peek open doc should only load doc when idle (#10023)
fix AF-2183
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user