MCPcopy
hub / github.com/graphif/project-graph / save

Method save

app/src/core/Project.tsx:382–390  ·  view source on GitHub ↗
(options: { includeThumbnail?: boolean } = {})

Source from the content-addressed store, hash-verified

380 // TODO: stash
381 }
382 async save(options: { includeThumbnail?: boolean } = {}) {
383 try {
384 this.isSaving = true;
385 await this.fs.write(this.uri, await this.getFileContent(options));
386 this.projectState = ProjectState.Saved;
387 } finally {
388 this.isSaving = false;
389 }
390 }
391
392 // 反向引用数据
393 public references: { sections: Record<string, string[]>; files: string[] } = { sections: {}, files: [] };

Callers 15

onUpgradeOldJsonFunction · 0.95
finishFunction · 0.45
resetFunction · 0.45
Settings.tsxFile · 0.45
flushSettingsLoadErrorsFunction · 0.45
initFunction · 0.45
setQuickSettingsFunction · 0.45
autoSaveMethod · 0.45
initFunction · 0.45
addRecentFileFunction · 0.45
addRecentFilesByUrisFunction · 0.45

Calls 2

getFileContentMethod · 0.95
writeMethod · 0.65

Tested by

no test coverage detected