* Get consolidated project names for a task
(task: TaskInfo)
| 999 | * Get consolidated project names for a task |
| 1000 | */ |
| 1001 | private getTaskProjects(task: TaskInfo): string[] { |
| 1002 | try { |
| 1003 | return getVisibleStatsProjectNames(task.projects, { |
| 1004 | noProjectLabel: this.plugin.i18n.translate("views.stats.noProject"), |
| 1005 | consolidateProjectName: (project) => this.consolidateProjectName(project), |
| 1006 | isArchivedProjectReference: (project) => this.isArchivedProjectReference(project), |
| 1007 | }); |
| 1008 | } catch { |
| 1009 | return [this.plugin.i18n.translate("views.stats.noProject")]; |
| 1010 | } |
| 1011 | } |
| 1012 | |
| 1013 | /** |
| 1014 | * Get date range based on current filters |
no test coverage detected