File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/extension/conversation/vscode-node Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ export class ConversationFeature implements IExtensionContribution {
8585 // Register Copilot token listener
8686 this . registerCopilotTokenListener ( ) ;
8787
88+ this . activated = true ;
8889 }
8990
9091 get enabled ( ) {
@@ -303,13 +304,11 @@ export class ConversationFeature implements IExtensionContribution {
303304 }
304305
305306 private registerCopilotTokenListener ( ) {
306- const tokenListener = ( ) => {
307+ this . _disposables . add ( this . authenticationService . onDidAuthenticationChange ( ( ) => {
307308 const chatEnabled = this . authenticationService . copilotToken ?. isChatEnabled ( ) ;
308309 this . logService . info ( `copilot token chat_enabled: ${ chatEnabled } , sku: ${ this . authenticationService . copilotToken ?. sku ?? '' } ` ) ;
309310 this . enabled = chatEnabled ?? false ;
310- } ;
311- this . _disposables . add ( this . authenticationService . onDidAuthenticationChange ( tokenListener ) ) ;
312- tokenListener ( ) ;
311+ } ) ) ;
313312 }
314313
315314 private registerTerminalQuickFixProviders ( ) {
You can’t perform that action at this time.
0 commit comments