TypeScript, VS Code extension (vscode API ^1.36), webpack, moment-mini, mocha+chai.
Development: Node.js 22.12+ on 22.x or Node.js 24; pnpm 10.33.4 is pinned in
package.json. Run corepack enable pnpm before setup. The extension still
targets VS Code 1.36 / Node 10.11; retain the compiler/API pins.
pnpm install --frozen-lockfile # reproducible install
pnpm run compile # webpack dev build → out/
pnpm run compile:watch
pnpm run test # mocha tests in test/
pnpm run typecheck # TypeScript source and test checks
pnpm run check # types, tests, development build, formatting
pnpm run format # prettier --write
pnpm run format:check
pnpm run package # production VSIX, bundled deps, no dependency collection
pnpm run publish # VS Code Marketplace only; never use bare pnpm publishDebug: open in VS Code, F5 launches Extension Dev Host. Sourcemaps active — breakpoints in src/ work.
User-visible changes go in CHANGELOG.md, newest version at top. Each version header is ### Version X.Y.Z. Group entries under feature additions or fixes. Link GitHub issue numbers when applicable. Always update it in the same PR that adds or changes user-facing behaviour.
master= stable (v5.2.0 latest published)develop= next release. All PRs target develop.- Branch naming:
feat/(feature),fix/(bug) - Keep PRs small and focused. Squash merge.
// Prettier formatting. Single-quote strings. 2-space indent. Semicolons.
// Classes use decorators. Everything else is plain functions/consts.
// Export named, never default
export const activate = (context: ExtensionContext): void => { ... };
// Commands register in commands.ts, not extension.ts
// Extension.ts wires disposables and subscriptions only
// Types from vscode never imported as wildcard — import type { ... } from 'vscode'src/extension.ts— activation, disposable registration, event wiringsrc/commands.ts— all command registrationssrc/todo/document.ts—.todofile parser/serializer (the core model)src/todo/items/— domain types: Todo, Project, Tag, Comment, Archive, Linesrc/todo/decorators/— VS Code text editor decorations per item typesrc/providers/— language features: completion, dependency links, symbolssrc/views/— tree views: files, embedded todossrc/statusbars/— statistics + timer status bar itemssrc/utils/embedded/providers/— ag, rg, js backends for embedded code todos
Task sources:
.todofiles (structured project/todo format)- Embedded todos (regex-extracted from code comments)
- Markdown notes (
markdown-tasks.ts/task-source.ts), sharing the Files and Due views and task commands with Todo files. Keep original source ranges and marker styles; do not parse prose or code examples as tasks.
- No runtime npm deps beyond vscode API. moment-mini (aliased from moment) is the only exception.
- @id / @depends must stay portable. IDs are plain text, survive copy/move/archive. Cross-file resolution via
dependency_index.ts. - Archive: completed items move under an "Archive" project. Configurable storage: same file, single workspace file, or per-file.
- Event propagation:
.todofile edits re-parse → fire events → views/stats/decorations update reactively.
- Never modify generated output in
out/,dist/, ornode_modules/ - Never add runtime dependencies without explaining why in the PR
- Follow symlinks only when
todo.followSymlinksis enabled (default: false)
All settings under todo.*. Key prefix groups:
todo.file.*— file discovery, includes/excludes, default contenttodo.symbols.*— box/done/cancelled characterstodo.colors.*— per-element colors (done, project, tag, id, dependency, etc.)todo.timekeeping.*— @created, @started, @done, @lasted formattodo.archive.*— archive behaviour and storage typetodo.statistics.*— project & statusbar statstodo.timer.*— statusbar timer for started todostodo.embedded.*— embedded todos batch size and comment visibilitytodo.markdown.*— Markdown task discovery and section scopingtodo.followSymlinks— follow symlinks during file enumeration
Types are in src/config.ts. Defaults in package.json under contributes.configuration.properties.