()
| 30 | } |
| 31 | |
| 32 | async save(): Promise<void> { |
| 33 | const data: FileMappingData = { |
| 34 | version: this.version, |
| 35 | mapping: Object.fromEntries(this.fileMapping), |
| 36 | lastUpdated: Date.now() |
| 37 | }; |
| 38 | |
| 39 | await this.app.vault.adapter.write(this.getMappingPath(), JSON.stringify(data, null, 2)); |
| 40 | } |
| 41 | |
| 42 | getMappedFiles(): string[] { |
| 43 | return Array.from(this.fileMapping.keys()); |
no test coverage detected