style(vscode-ide-companion/ui): improve component styling and layout

This commit is contained in:
yiliang114
2025-12-05 18:03:37 +08:00
parent 13aa4b03c7
commit ac9cb3a6d3
6 changed files with 47 additions and 30 deletions

View File

@@ -42,7 +42,8 @@ const parsePlanEntries = (textOutputs: string[]): PlanEntry[] => {
const lines = text.split(/\r?\n/);
const entries: PlanEntry[] = [];
const todoRe = /^(?:\s*(?:[-*]|\d+[.)])\s*)?\[( |x|X|-)\]\s+(.*)$/;
// Accept [ ], [x]/[X] and in-progress markers [-] or [*]
const todoRe = /^(?:\s*(?:[-*]|\d+[.)])\s*)?\[( |x|X|-|\*)\]\s+(.*)$/;
for (const line of lines) {
const m = line.match(todoRe);
if (m) {
@@ -51,7 +52,7 @@ const parsePlanEntries = (textOutputs: string[]): PlanEntry[] => {
const status: EntryStatus =
mark === 'x' || mark === 'X'
? 'completed'
: mark === '-'
: mark === '-' || mark === '*'
? 'in_progress'
: 'pending';
if (title) {