(paths: string[] | undefined)
| 469 | } |
| 470 | |
| 471 | private normalizeIgnoredFiles(paths: string[] | undefined): string[] { |
| 472 | if (!Array.isArray(paths)) { |
| 473 | return []; |
| 474 | } |
| 475 | |
| 476 | return Array.from(new Set( |
| 477 | paths |
| 478 | .filter((path): path is string => typeof path === "string") |
| 479 | .map((path) => this.normalizeIgnoredPath(path)) |
| 480 | .filter(Boolean) |
| 481 | )).sort((a, b) => a.localeCompare(b)); |
| 482 | } |
| 483 | |
| 484 | private async persistIgnoredFiles(): Promise<void> { |
| 485 | await this.saveData(this.settings); |
no test coverage detected