File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/vs/workbench/contrib/chat/browser Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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
6667export 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 ,
You can’t perform that action at this time.
0 commit comments