(options: { includeThumbnail?: boolean } = {})
| 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: [] }; |
no test coverage detected