()
| 364 | } |
| 365 | |
| 366 | async pruneIgnoredFiles(): Promise<boolean> { |
| 367 | const filtered = this.settings.ignoredFiles.filter((path) => { |
| 368 | const file = this.app.vault.getAbstractFileByPath(path); |
| 369 | return file instanceof TFile || file instanceof TFolder; |
| 370 | }); |
| 371 | if (filtered.length === this.settings.ignoredFiles.length) { |
| 372 | return false; |
| 373 | } |
| 374 | |
| 375 | this.settings.ignoredFiles = this.normalizeIgnoredFiles(filtered); |
| 376 | await this.persistIgnoredFiles(); |
| 377 | return true; |
| 378 | } |
| 379 | |
| 380 | async openIgnoreManager() { |
| 381 | await this.pruneIgnoredFiles(); |
no test coverage detected