Skip to content

Commit c250d29

Browse files
committed
Chat view description
1 parent c461256 commit c250d29

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/vs/workbench/contrib/chat/browser/chatSessions.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ interface ILocalChatSessionItem extends IChatSessionItem {
6161
group?: IEditorGroup;
6262
widget?: IChatWidget;
6363
sessionType: 'editor' | 'widget';
64+
description?: string;
6465
}
6566

6667
export class ChatSessionsView extends Disposable implements IWorkbenchContribution {
@@ -290,7 +291,8 @@ class LocalChatSessionsProvider extends Disposable implements IChatSessionItemPr
290291
if (chatWidget) {
291292
sessions.push({
292293
id: LocalChatSessionsProvider.CHAT_WIDGET_VIEW_ID,
293-
label: chatWidget.viewModel?.model.title || nls.localize2('chat.sessions.chatView', "Chat View").value,
294+
label: chatWidget.viewModel?.model.title || nls.localize2('chat.sessions.chatView', "Chat").value,
295+
description: nls.localize('chat.sessions.chatView.description', "Chat View"),
294296
iconPath: Codicon.chatSparkle,
295297
widget: chatWidget,
296298
sessionType: 'widget'
@@ -545,6 +547,7 @@ class SessionsRenderer extends Disposable implements ITreeRenderer<IChatSessionI
545547
// Set the resource label
546548
templateData.resourceLabel.setResource({
547549
name: session.label,
550+
description: 'description' in session && typeof session.description === 'string' ? session.description : '',
548551
resource: iconResource
549552
}, {
550553
fileKind: undefined,

0 commit comments

Comments
 (0)