File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,11 @@ export class MainThreadChatSessions extends Disposable implements MainThreadChat
257
257
return iconPath ; // ThemeIcon doesn't need conversion
258
258
}
259
259
260
+ // handle single URI
261
+ if ( typeof iconPath === 'object' && 'scheme' in iconPath ) {
262
+ return URI . revive ( iconPath ) ;
263
+ }
264
+
260
265
// Handle light/dark theme icons
261
266
if ( typeof iconPath === 'object' && ( 'light' in iconPath && 'dark' in iconPath ) ) {
262
267
return {
Original file line number Diff line number Diff line change @@ -611,10 +611,16 @@ class SessionsRenderer extends Disposable implements ITreeRenderer<IChatSessionI
611
611
// Handle different icon types
612
612
let iconResource : URI | undefined ;
613
613
let iconTheme : ThemeIcon | undefined ;
614
+ let iconUri : URI | undefined ;
614
615
615
616
if ( session . iconPath ) {
616
617
if ( session . iconPath instanceof URI ) {
617
- iconResource = session . iconPath ;
618
+ // Check if it's a data URI - if so, use it as icon option instead of resource
619
+ if ( session . iconPath . scheme === 'data' ) {
620
+ iconUri = session . iconPath ;
621
+ } else {
622
+ iconResource = session . iconPath ;
623
+ }
618
624
} else if ( ThemeIcon . isThemeIcon ( session . iconPath ) ) {
619
625
iconTheme = session . iconPath ;
620
626
} else {
@@ -634,7 +640,7 @@ class SessionsRenderer extends Disposable implements ITreeRenderer<IChatSessionI
634
640
resource : iconResource
635
641
} , {
636
642
fileKind : undefined ,
637
- icon : iconTheme
643
+ icon : iconTheme || iconUri
638
644
} ) ;
639
645
}
640
646
Original file line number Diff line number Diff line change 15
15
.composite .viewlet [id = "workbench.view.chat.sessions" ] .pane-header .expanded .not-collapsible {
16
16
background-color : var (--vscode-sideBarSectionHeader-background ) !important ;
17
17
}
18
+
19
+ /* Add padding to chat session item icons */
20
+ .chat-sessions-tree .chat-session-item .monaco-icon-label-iconpath {
21
+ margin-right : 4px ;
22
+ margin-left : 4px ;
23
+ }
You can’t perform that action at this time.
0 commit comments