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

Method getDocumentByFileName

packages/core/src/project/project.ts:176–178  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

174 }
175
176 getDocumentByFileName(fileName: string) {
177 return this.documents.find(doc => doc.fileName === fileName)
178 }
179
180 /**
181 * open or create a document

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected