MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / open

Method open

packages/core/src/document/document.ts:327–340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

325
326 @action
327 open() {
328 const originState = this._opened
329 this._opened = true
330 // only emit when document is suspense
331 if (originState === false) {
332 this.designer.postEvent(DOCUMENT_EVENT.OPEN, this)
333 }
334 if (this._suspended) {
335 this.setSuspense(false)
336 } else {
337 this.project.checkExclusive(this)
338 }
339 return this
340 }
341
342 @action
343 close() {

Callers

nothing calls this directly

Calls 3

setSuspenseMethod · 0.95
checkExclusiveMethod · 0.80
postEventMethod · 0.45

Tested by

no test coverage detected