Skip to content

Commit a08f0cc

Browse files
committed
feat: update rendering UpdatePlan result
1 parent 330608f commit a08f0cc

4 files changed

Lines changed: 1936 additions & 1728 deletions

File tree

package-lock.json

Lines changed: 5 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"prepare": "husky"
8686
},
8787
"devDependencies": {
88-
"@eslint/js": "^10.0.1",
88+
"@eslint/js": "^9.39.4",
8989
"@types/ejs": "^3.1.5",
9090
"@types/markdown-it": "^14.1.1",
9191
"@types/node": "^20.12.7",

resources/webview.css

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,101 @@ body {
462462
line-height: 1.5;
463463
}
464464

465+
.update-plan-result {
466+
border: 1px solid var(--border-color);
467+
border-radius: 6px;
468+
background: var(--vscode-editor-background);
469+
color: var(--vscode-editor-foreground);
470+
font-family: var(--vscode-font-family);
471+
font-size: 13px;
472+
line-height: 1.45;
473+
padding: 10px;
474+
white-space: normal;
475+
}
476+
477+
.update-plan-heading {
478+
color: var(--vscode-foreground);
479+
font-size: 13px;
480+
font-weight: 650;
481+
line-height: 1.35;
482+
margin: 0 0 8px;
483+
}
484+
485+
.update-plan-heading:not(:first-child) {
486+
margin-top: 12px;
487+
}
488+
489+
.update-plan-spacer {
490+
height: 6px;
491+
}
492+
493+
.update-plan-paragraph {
494+
margin: 4px 0;
495+
}
496+
497+
.update-plan-task,
498+
.update-plan-bullet {
499+
display: grid;
500+
grid-template-columns: 18px 1fr;
501+
gap: 8px;
502+
align-items: flex-start;
503+
margin: 5px 0;
504+
padding-left: calc(var(--plan-indent, 0) * 18px);
505+
}
506+
507+
.update-plan-status {
508+
width: 14px;
509+
height: 14px;
510+
margin-top: 2px;
511+
border: 1px solid var(--vscode-descriptionForeground);
512+
border-radius: 50%;
513+
color: var(--vscode-editor-background);
514+
display: inline-flex;
515+
align-items: center;
516+
justify-content: center;
517+
font-size: 10px;
518+
font-weight: 700;
519+
line-height: 1;
520+
}
521+
522+
.update-plan-task.status-done .update-plan-status {
523+
background: var(--vscode-testing-iconPassed, #2ea043);
524+
border-color: var(--vscode-testing-iconPassed, #2ea043);
525+
}
526+
527+
.update-plan-task.status-active .update-plan-status {
528+
background: var(--vscode-charts-blue, #3794ff);
529+
border-color: var(--vscode-charts-blue, #3794ff);
530+
}
531+
532+
.update-plan-task.status-attention .update-plan-status {
533+
background: var(--vscode-testing-iconFailed, #f85149);
534+
border-color: var(--vscode-testing-iconFailed, #f85149);
535+
}
536+
537+
.update-plan-task.status-todo .update-plan-status {
538+
background: transparent;
539+
}
540+
541+
.update-plan-task.status-done .update-plan-task-text {
542+
color: var(--vscode-descriptionForeground);
543+
text-decoration: line-through;
544+
}
545+
546+
.update-plan-bullet-marker {
547+
color: var(--vscode-descriptionForeground);
548+
line-height: 1.45;
549+
text-align: center;
550+
}
551+
552+
.update-plan-markdown code {
553+
border-radius: 3px;
554+
background: var(--vscode-textCodeBlock-background);
555+
font-family: var(--vscode-editor-font-family);
556+
font-size: 0.92em;
557+
padding: 1px 4px;
558+
}
559+
465560
.tool-result-file-row {
466561
display: flex;
467562
align-items: center;

0 commit comments

Comments
 (0)