Rename task widget to todos

This commit is contained in:
jb
2026-08-26 16:40:05 -04:00
parent b654c3c81b
commit 1a437f50b4
6 changed files with 48 additions and 12 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import type { TaskState } from "./state.ts";
import { renderProgressHeader, renderWidgetTree } from "./ui.ts";
const WIDGET_ID = "pi-todo-herdr";
const TIMER_REFRESH_MS = 1000;
export const TODO_ANIMATION_INTERVAL_MS = 500;
export function clearTaskWidget(ctx: ExtensionContext): void {
ctx.ui.setWidget(WIDGET_ID, undefined);
@@ -13,7 +13,7 @@ export function updateTaskWidget(
state: TaskState,
ctx: ExtensionContext,
visible: boolean,
refreshMs = TIMER_REFRESH_MS,
refreshMs = TODO_ANIMATION_INTERVAL_MS,
): void {
const tasks = state.list();
if (!visible || tasks.length === 0) {