@@ -28,7 +28,7 @@ import { Action2, MenuId, MenuRegistry, registerAction2 } from '../../../../plat
28
28
import { ICommandService } from '../../../../platform/commands/common/commands.js' ;
29
29
import { ConfigurationTarget , IConfigurationService } from '../../../../platform/configuration/common/configuration.js' ;
30
30
import { Extensions as ConfigurationExtensions , IConfigurationRegistry } from '../../../../platform/configuration/common/configurationRegistry.js' ;
31
- import { ContextKeyExpr } from '../../../../platform/contextkey/common/contextkey.js' ;
31
+ import { ContextKeyExpr , IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js' ;
32
32
import { createWorkbenchDialogOptions } from '../../../../platform/dialogs/browser/dialog.js' ;
33
33
import { IDialogService } from '../../../../platform/dialogs/common/dialogs.js' ;
34
34
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js' ;
@@ -593,7 +593,7 @@ class ChatSetup {
593
593
let instance = ChatSetup . instance ;
594
594
if ( ! instance ) {
595
595
instance = ChatSetup . instance = instantiationService . invokeFunction ( accessor => {
596
- return new ChatSetup ( context , controller , instantiationService , accessor . get ( ITelemetryService ) , accessor . get ( IWorkbenchLayoutService ) , accessor . get ( IKeybindingService ) , accessor . get ( IChatEntitlementService ) , accessor . get ( ILogService ) , accessor . get ( IConfigurationService ) , accessor . get ( IViewsService ) , accessor . get ( IProductService ) , accessor . get ( IOpenerService ) , accessor . get ( IContextMenuService ) ) ;
596
+ return new ChatSetup ( context , controller , instantiationService , accessor . get ( ITelemetryService ) , accessor . get ( IWorkbenchLayoutService ) , accessor . get ( IKeybindingService ) , accessor . get ( IChatEntitlementService ) , accessor . get ( ILogService ) , accessor . get ( IConfigurationService ) , accessor . get ( IViewsService ) , accessor . get ( IProductService ) , accessor . get ( IOpenerService ) , accessor . get ( IContextMenuService ) , accessor . get ( IContextKeyService ) ) ;
597
597
} ) ;
598
598
}
599
599
@@ -617,7 +617,8 @@ class ChatSetup {
617
617
@IViewsService private readonly viewsService : IViewsService ,
618
618
@IProductService private readonly productService : IProductService ,
619
619
@IOpenerService private readonly openerService : IOpenerService ,
620
- @IContextMenuService private readonly contextMenuService : IContextMenuService
620
+ @IContextMenuService private readonly contextMenuService : IContextMenuService ,
621
+ @IContextKeyService private readonly contextKeyService : IContextKeyService
621
622
) { }
622
623
623
624
skipDialog ( ) : void {
@@ -639,6 +640,8 @@ class ChatSetup {
639
640
}
640
641
641
642
private async doRun ( options ?: { disableChatViewReveal ?: boolean } ) : Promise < IChatSetupResult > {
643
+ ChatContextKeys . Setup . later . bindTo ( this . contextKeyService ) . set ( false ) ;
644
+
642
645
const dialogSkipped = this . skipDialogOnce ;
643
646
this . skipDialogOnce = false ;
644
647
@@ -675,6 +678,7 @@ class ChatSetup {
675
678
this . openerService . open ( URI . parse ( defaultChat . signUpUrl ) ) ;
676
679
return this . doRun ( options ) ; // open dialog again
677
680
case ChatSetupStrategy . Canceled :
681
+ ChatContextKeys . Setup . later . bindTo ( this . contextKeyService ) . set ( true ) ;
678
682
this . telemetryService . publicLog2 < InstallChatEvent , InstallChatClassification > ( 'commandCenter.chatInstall' , { installResult : 'failedMaybeLater' , installDuration : 0 , signUpErrorCode : undefined } ) ;
679
683
break ;
680
684
}
0 commit comments