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

Method closeOthers

packages/core/src/project/project.ts:228–234  ·  view source on GitHub ↗
(opened: Document)

Source from the content-addressed store, hash-verified

226 }
227
228 closeOthers(opened: Document) {
229 this.documents.forEach(doc => {
230 if (doc !== opened) {
231 doc.close()
232 }
233 })
234 }
235
236 /**
237 * set extra data, available for plugins

Callers

nothing calls this directly

Calls 2

closeMethod · 0.80
forEachMethod · 0.45

Tested by

no test coverage detected