MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / hasUnsavedFiles

Function hasUnsavedFiles

src/lib/editorManager.js:2997–3000  ·  view source on GitHub ↗

* Checks if there are any unsaved files in the manager. * @returns {number} The number of unsaved files.

()

Source from the content-addressed store, hash-verified

2995 * @returns {number} The number of unsaved files.
2996 */
2997 function hasUnsavedFiles() {
2998 const unsavedFiles = manager.files.filter((file) => file.isUnsaved);
2999 return unsavedFiles.length;
3000 }
3001
3002 /**
3003 * Gets a file from the file manager

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected