File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/vs/workbench/contrib/chat Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -57,14 +57,15 @@ export class ChatViewWelcomeController extends Disposable {
57
57
return ;
58
58
}
59
59
60
+ this . enabled = enabled ;
60
61
this . enabledDisposables . clear ( ) ;
62
+
61
63
if ( ! enabled ) {
62
64
this . container . classList . toggle ( 'chat-view-welcome-visible' , false ) ;
63
65
this . renderDisposables . clear ( ) ;
64
66
return ;
65
67
}
66
68
67
- this . enabled = true ;
68
69
const descriptors = chatViewsWelcomeRegistry . get ( ) ;
69
70
if ( descriptors . length ) {
70
71
this . render ( descriptors ) ;
Original file line number Diff line number Diff line change @@ -952,7 +952,7 @@ export class ChatService extends Disposable implements IChatService {
952
952
}
953
953
954
954
public hasSessions ( ) : boolean {
955
- return ! ! Object . values ( this . _persistedSessions ) ;
955
+ return Object . values ( this . _persistedSessions ) . length > 0 ;
956
956
}
957
957
958
958
transferChatSession ( transferredSessionData : IChatTransferredSessionData , toWorkspace : URI ) : void {
You can’t perform that action at this time.
0 commit comments