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

Function canSaveFile

src/lib/commands.js:53–59  ·  view source on GitHub ↗
(file = editorManager.activeFile)

Source from the content-addressed store, hash-verified

51}
52
53export function canSaveFile(file = editorManager.activeFile) {
54 return (
55 file?.type === "editor" &&
56 typeof file.save === "function" &&
57 typeof file.saveAs === "function"
58 );
59}
60
61function getTabsRelativeToFile(side, referenceFile) {
62 const { files } = editorManager;

Callers 3

main.jsFile · 0.90
saveFunction · 0.85
"save-as"Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected