(path: string)
| 591 | } |
| 592 | |
| 593 | private removeFilterIndexEntry(path: string): boolean { |
| 594 | if (!this.filterIndexesBuilt) { |
| 595 | return false; |
| 596 | } |
| 597 | |
| 598 | const entry = this.taskFilterEntries.get(path); |
| 599 | if (!entry) { |
| 600 | return false; |
| 601 | } |
| 602 | |
| 603 | this.taskFilterEntries.delete(path); |
| 604 | this.indexedTaskPaths.delete(path); |
| 605 | this.removePathFromIndex(this.statusIndex, entry.status, path); |
| 606 | this.removePathFromIndex(this.priorityIndex, entry.priority, path); |
| 607 | this.removePathFromIndex(this.dueDateIndex, entry.dueDate, path); |
| 608 | this.removePathFromIndex(this.scheduledDateIndex, entry.scheduledDate, path); |
| 609 | this.decrementValues(this.tagCounts, entry.tags); |
| 610 | this.decrementValues(this.contextCounts, entry.contexts); |
| 611 | this.decrementValues(this.projectCounts, entry.projects); |
| 612 | return true; |
| 613 | } |
| 614 | |
| 615 | private addPathToIndex( |
| 616 | index: Map<string, Set<string>>, |
no test coverage detected