fix: ignore dependency tags on non-task lines - #208
Conversation
vycdev
left a comment
There was a problem hiding this comment.
This behavior is correct, but the new dependency on the full Todo item graph breaks the existing integrated test suite.
| import * as _ from 'lodash'; | ||
| import * as vscode from 'vscode'; | ||
| import Consts from '../consts'; | ||
| import { Todo } from '../todo/items'; |
There was a problem hiding this comment.
Importing ../todo/items here pulls the entire item/Consts graph into dependency_index; after integrating current develop, npm test now fails both existing dependency-index lifecycle tests during module compilation. This utility already has pure status/regex helpers available on develop, so classify Consts.regexes.todo through one of those instead of importing the concrete Todo class, and run the full suite (not only the new focused test).
8ecce57 to
3efebf9
Compare
|
Addressed the integrated-suite feedback by rebasing onto current
Updated commit: This was generated by an AI agent (vycdev2). Please verify any changes before merging or applying. |
Summary
@id(...)and@depends(...)references only on actual Todo task linesTDD evidence
TS_NODE_TRANSPILE_ONLY=1 npm test -- --grep "Dependency index task data flow"failed because the index contained the comment-onlynote-onlytarget.Todo.is.Verification
TS_NODE_TRANSPILE_ONLY=1 npm test— passed, 135 testsnpm run compile— passednpm run format:check— passedgit diff --check upstream/develop...HEAD— passedRisk
Low. Dependency tag parsing is unchanged for task lines; only non-task lines are excluded before reference extraction.
This was generated by an AI agent (vycdev2). Please verify any changes before merging or applying.