Commit f22e4db
refactor: eliminate TodoPromptActionKind enum with delegate dispatch
Replace the TodoPromptActionKind enum and switch-based dispatch in
TodoListViewModel with direct delegate parameters. Each caller now
passes a static lambda for the specific prompt generation method,
removing the indirection layer entirely.
- Delete Commands/TodoCommands.cs (contained only the enum)
- Refactor RunTodoPromptCommandAsync to accept (string action, Func delegate)
- Remove unused McpServerManager.Core.Commands using
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 3adcceb commit f22e4db
2 files changed
Lines changed: 11 additions & 28 deletions
This file was deleted.
Lines changed: 11 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
377 | 376 | | |
378 | 377 | | |
379 | 378 | | |
380 | | - | |
| 379 | + | |
| 380 | + | |
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
| 389 | + | |
| 390 | + | |
390 | 391 | | |
391 | 392 | | |
392 | 393 | | |
| |||
395 | 396 | | |
396 | 397 | | |
397 | 398 | | |
398 | | - | |
| 399 | + | |
| 400 | + | |
399 | 401 | | |
400 | 402 | | |
401 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
402 | 407 | | |
403 | | - | |
404 | 408 | | |
405 | 409 | | |
406 | 410 | | |
| |||
413 | 417 | | |
414 | 418 | | |
415 | 419 | | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
| 420 | + | |
430 | 421 | | |
431 | 422 | | |
432 | 423 | | |
| |||
0 commit comments