manageTodoListTool.ts ×6

Frontier kind: Joint frontier

unlabeled · c_f86628ea2237

1 test · 18759 LOC · 111 files · introduces 1 test · 22 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges22 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
2361 ranges18759 lines · 111 files · Browse complete extent
All tests (intent)
1 testBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 22 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.ts 22 introduced LOC · 6 ranges

Open complete file

182 : localize('todo.created.multiple', "Created {0} todos", newTodos.length);
183 }
185 > // Create map for easier comparison
186 > const currentTodoMap = new Map(currentTodos.map(todo => [todo.id, todo]));
187 >
188 > // Check for newly started todos (marked as in-progress) - highest priority
189 > const startedTodos = newTodos.filter(newTodo => {
190 const currentTodo = currentTodoMap.get(newTodo.id);
191 return currentTodo && currentTodo.status !== 'in-progress' && newTodo.status === 'in-progress';
193 >
194 > if (startedTodos.length > 0) {
195 const startedTodo = startedTodos[0]; // Should only be one in-progress at a time
196 const totalTodos = newTodos.length;
198 return localize('todo.starting', "Starting: *{0}* ({1}/{2})", startedTodo.title, currentPosition, totalTodos);
199 }
201 > // Check for newly completed todos
202 > const completedTodos = newTodos.filter(newTodo => {
203 const currentTodo = currentTodoMap.get(newTodo.id);
204 return currentTodo && currentTodo.status !== 'completed' && newTodo.status === 'completed';
206 >
207 > if (completedTodos.length > 0) {
208 const completedTodo = completedTodos[0]; // Get the first completed todo for the message
209 const totalTodos = newTodos.length;
211 return localize('todo.completed', "Completed: *{0}* ({1}/{2})", completedTodo.title, currentPosition, totalTodos);
212 }
214 > // Check for new todos added
215 > const addedTodos = newTodos.filter(newTodo => !currentTodoMap.has(newTodo.id));
216 > if (addedTodos.length > 0) {
217 return addedTodos.length === 1
218 ? localize('todo.added.single', "Added 1 todo")
219 : localize('todo.added.multiple', "Added {0} todos", addedTodos.length);
220 }
222 > // Default message for other updates
223 > return localize('todo.updated', "Updated todo list");
224 }
225