Skip to content

Commit 286f5ab

Browse files
authored
Todo items with description tooltip (microsoft#258931)
1 parent c7b91f8 commit 286f5ab

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/vs/workbench/contrib/chat/browser/chatContentParts/chatTodoListWidget.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ export class ChatTodoListWidget extends Disposable {
106106
todoList.forEach((todo, index) => {
107107
const todoElement = dom.$('.todo-item');
108108

109+
// Add tooltip if description exists
110+
if (todo.description && todo.description.trim()) {
111+
todoElement.title = todo.description;
112+
}
113+
109114
const statusIcon = dom.$('.todo-status-icon.codicon');
110115
statusIcon.classList.add(this.getStatusIconClass(todo.status));
111116
statusIcon.style.color = this.getStatusIconColor(todo.status);

src/vs/workbench/contrib/chat/browser/media/chat.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2421,6 +2421,10 @@ have to be updated for changes to the rules above, or to support more deeply nes
24212421
padding: 2px 0;
24222422
}
24232423

2424+
.chat-todo-list-widget .todo-item[title]:hover {
2425+
background-color: var(--vscode-list-hoverBackground);
2426+
}
2427+
24242428
.chat-todo-list-widget .todo-status-icon {
24252429
flex-shrink: 0;
24262430
font-size: 14px;

0 commit comments

Comments
 (0)