@@ -169,7 +169,7 @@ export class ChatSetupContribution extends Disposable implements IWorkbenchContr
169
169
const configurationService = accessor . get ( IConfigurationService ) ;
170
170
const layoutService = accessor . get ( IWorkbenchLayoutService ) ;
171
171
172
- await that . context . update ( { triggered : true } ) ;
172
+ await that . context . update ( { hidden : false } ) ;
173
173
174
174
showCopilotView ( viewsService , layoutService ) ;
175
175
ensureSideBarChatViewSize ( 400 , viewDescriptorService , layoutService ) ;
@@ -282,7 +282,7 @@ export class ChatSetupContribution extends Disposable implements IWorkbenchContr
282
282
async function hideSetupView ( viewsDescriptorService : IViewDescriptorService , layoutService : IWorkbenchLayoutService ) : Promise < void > {
283
283
const location = viewsDescriptorService . getViewLocationById ( ChatViewId ) ;
284
284
285
- await that . context . update ( { triggered : false } ) ;
285
+ await that . context . update ( { hidden : true } ) ;
286
286
287
287
if ( location === ViewContainerLocation . AuxiliaryBar ) {
288
288
const activeContainers = viewsDescriptorService . getViewContainersByLocation ( location ) . filter ( container => viewsDescriptorService . getViewContainerModel ( container ) . activeViewDescriptors . length > 0 ) ;
@@ -1020,7 +1020,7 @@ class ChatSetupWelcomeContent extends Disposable {
1020
1020
1021
1021
interface IChatSetupContextState {
1022
1022
entitlement : ChatEntitlement ;
1023
- triggered ?: boolean ;
1023
+ hidden ?: boolean ;
1024
1024
installed ?: boolean ;
1025
1025
registered ?: boolean ;
1026
1026
}
@@ -1033,7 +1033,7 @@ class ChatSetupContext extends Disposable {
1033
1033
private readonly signedOutContextKey = ChatContextKeys . Setup . signedOut . bindTo ( this . contextKeyService ) ;
1034
1034
private readonly limitedContextKey = ChatContextKeys . Setup . limited . bindTo ( this . contextKeyService ) ;
1035
1035
private readonly proContextKey = ChatContextKeys . Setup . pro . bindTo ( this . contextKeyService ) ;
1036
- private readonly triggeredContext = ChatContextKeys . Setup . triggered . bindTo ( this . contextKeyService ) ;
1036
+ private readonly hiddenContext = ChatContextKeys . Setup . hidden . bindTo ( this . contextKeyService ) ;
1037
1037
private readonly installedContext = ChatContextKeys . Setup . installed . bindTo ( this . contextKeyService ) ;
1038
1038
1039
1039
private _state : IChatSetupContextState = this . storageService . getObject < IChatSetupContextState > ( ChatSetupContext . CHAT_SETUP_CONTEXT_STORAGE_KEY , StorageScope . PROFILE ) ?? { entitlement : ChatEntitlement . Unknown } ;
@@ -1078,21 +1078,21 @@ class ChatSetupContext extends Disposable {
1078
1078
}
1079
1079
1080
1080
update ( context : { installed : boolean } ) : Promise < void > ;
1081
- update ( context : { triggered : boolean } ) : Promise < void > ;
1081
+ update ( context : { hidden : boolean } ) : Promise < void > ;
1082
1082
update ( context : { entitlement : ChatEntitlement } ) : Promise < void > ;
1083
- update ( context : { installed ?: boolean ; triggered ?: boolean ; entitlement ?: ChatEntitlement } ) : Promise < void > {
1083
+ update ( context : { installed ?: boolean ; hidden ?: boolean ; entitlement ?: ChatEntitlement } ) : Promise < void > {
1084
1084
this . logService . trace ( `[chat setup] update(): ${ JSON . stringify ( context ) } ` ) ;
1085
1085
1086
1086
if ( typeof context . installed === 'boolean' ) {
1087
1087
this . _state . installed = context . installed ;
1088
1088
1089
1089
if ( context . installed ) {
1090
- context . triggered = true ; // allows to fallback to setup view if the extension is uninstalled
1090
+ context . hidden = false ; // allows to fallback to setup view if the extension is uninstalled
1091
1091
}
1092
1092
}
1093
1093
1094
- if ( typeof context . triggered === 'boolean' ) {
1095
- this . _state . triggered = context . triggered ;
1094
+ if ( typeof context . hidden === 'boolean' ) {
1095
+ this . _state . hidden = context . hidden ;
1096
1096
}
1097
1097
1098
1098
if ( typeof context . entitlement === 'number' ) {
@@ -1119,7 +1119,7 @@ class ChatSetupContext extends Disposable {
1119
1119
private updateContextSync ( ) : void {
1120
1120
this . logService . trace ( `[chat setup] updateContext(): ${ JSON . stringify ( this . _state ) } ` ) ;
1121
1121
1122
- if ( this . _state . triggered && ! this . _state . installed ) {
1122
+ if ( ! this . _state . hidden && ! this . _state . installed ) {
1123
1123
// this is ugly but fixes flicker from a previous chat install
1124
1124
this . storageService . remove ( 'chat.welcomeMessageContent.panel' , StorageScope . APPLICATION ) ;
1125
1125
this . storageService . remove ( 'interactive.sessions' , this . workspaceContextService . getWorkspace ( ) . folders . length ? StorageScope . WORKSPACE : StorageScope . APPLICATION ) ;
@@ -1129,7 +1129,7 @@ class ChatSetupContext extends Disposable {
1129
1129
this . canSignUpContextKey . set ( this . _state . entitlement === ChatEntitlement . Available ) ;
1130
1130
this . limitedContextKey . set ( this . _state . entitlement === ChatEntitlement . Limited ) ;
1131
1131
this . proContextKey . set ( this . _state . entitlement === ChatEntitlement . Pro ) ;
1132
- this . triggeredContext . set ( ! ! this . _state . triggered ) ;
1132
+ this . hiddenContext . set ( ! ! this . _state . hidden ) ;
1133
1133
this . installedContext . set ( ! ! this . _state . installed ) ;
1134
1134
1135
1135
this . _onDidChange . fire ( ) ;
0 commit comments