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

Function save

src/lib/commands.js:369–380  ·  view source on GitHub ↗
(showToast)

Source from the content-addressed store, hash-verified

367 editorManager.activeFile.runFile?.();
368 },
369 async save(showToast) {
370 try {
371 const { activeFile } = editorManager;
372 if (!canSaveFile(activeFile)) return;
373 await activeFile.save();
374 if (showToast) {
375 toast(strings["file saved"]);
376 }
377 } catch (error) {
378 helpers.error(error);
379 }
380 },
381 async "save-as"(showToast) {
382 try {
383 const { activeFile } = editorManager;

Callers 1

editorFile.jsFile · 0.85

Calls 3

canSaveFileFunction · 0.85
saveMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected