@@ -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 , IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js' ;
31
+ import { ContextKeyExpr } 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 ) , accessor . get ( IContextKeyService ) ) ;
596
+ return new ChatSetup ( context , controller , instantiationService , accessor . get ( ITelemetryService ) , accessor . get ( IWorkbenchLayoutService ) , accessor . get ( IKeybindingService ) , accessor . get ( IChatEntitlementService ) as ChatEntitlementService , accessor . get ( ILogService ) , accessor . get ( IConfigurationService ) , accessor . get ( IViewsService ) , accessor . get ( IProductService ) , accessor . get ( IOpenerService ) , accessor . get ( IContextMenuService ) ) ;
597
597
} ) ;
598
598
}
599
599
@@ -611,14 +611,13 @@ class ChatSetup {
611
611
@ITelemetryService private readonly telemetryService : ITelemetryService ,
612
612
@ILayoutService private readonly layoutService : IWorkbenchLayoutService ,
613
613
@IKeybindingService private readonly keybindingService : IKeybindingService ,
614
- @IChatEntitlementService private readonly chatEntitlementService : IChatEntitlementService ,
614
+ @IChatEntitlementService private readonly chatEntitlementService : ChatEntitlementService ,
615
615
@ILogService private readonly logService : ILogService ,
616
616
@IConfigurationService private readonly configurationService : IConfigurationService ,
617
617
@IViewsService private readonly viewsService : IViewsService ,
618
618
@IProductService private readonly productService : IProductService ,
619
619
@IOpenerService private readonly openerService : IOpenerService ,
620
620
@IContextMenuService private readonly contextMenuService : IContextMenuService ,
621
- @IContextKeyService private readonly contextKeyService : IContextKeyService
622
621
) { }
623
622
624
623
skipDialog ( ) : void {
@@ -640,7 +639,7 @@ class ChatSetup {
640
639
}
641
640
642
641
private async doRun ( options ?: { disableChatViewReveal ?: boolean } ) : Promise < IChatSetupResult > {
643
- ChatContextKeys . Setup . later . bindTo ( this . contextKeyService ) . set ( false ) ;
642
+ this . context . update ( { later : false } ) ;
644
643
645
644
const dialogSkipped = this . skipDialogOnce ;
646
645
this . skipDialogOnce = false ;
@@ -678,7 +677,7 @@ class ChatSetup {
678
677
this . openerService . open ( URI . parse ( defaultChat . signUpUrl ) ) ;
679
678
return this . doRun ( options ) ; // open dialog again
680
679
case ChatSetupStrategy . Canceled :
681
- ChatContextKeys . Setup . later . bindTo ( this . contextKeyService ) . set ( true ) ;
680
+ this . context . update ( { later : true } ) ;
682
681
this . telemetryService . publicLog2 < InstallChatEvent , InstallChatClassification > ( 'commandCenter.chatInstall' , { installResult : 'failedMaybeLater' , installDuration : 0 , signUpErrorCode : undefined } ) ;
683
682
break ;
684
683
}
0 commit comments