feat: add red colors to unknown status\priority
This commit is contained in:
@@ -3,9 +3,9 @@ import { resolveTaskLocations } from "@/commands/resolveTaskLocations";
|
||||
import { Task } from "@/model/task";
|
||||
import { LocatedTask, TaskLocation } from "@/model/taskLocation";
|
||||
import {
|
||||
TaskStatus,
|
||||
TASK_STATUS_META,
|
||||
TASK_STATUS_ORDER,
|
||||
type TaskStatus,
|
||||
} from "@/model/taskStatus";
|
||||
import { IConfigProvider, ITaskRepository } from "@/ports";
|
||||
import { TASK_SCOPE_LABELS, TASK_STATUS_LABELS } from "@/ui/taskLabels";
|
||||
@@ -47,7 +47,12 @@ class TaskGroupTreeItem extends vscode.TreeItem {
|
||||
this.description = `(${tasks.length})`;
|
||||
this.id = `group-${location.scope}-${status}`;
|
||||
this.contextValue = "taskGroup";
|
||||
this.iconPath = new vscode.ThemeIcon(TASK_STATUS_META[status].icon);
|
||||
this.iconPath = new vscode.ThemeIcon(
|
||||
TASK_STATUS_META[status].icon,
|
||||
status === TaskStatus.UNKNOWN
|
||||
? new vscode.ThemeColor("charts.red")
|
||||
: undefined,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user