@@ -320,9 +320,12 @@ export class ChatExtensionPointHandler implements IWorkbenchContribution {
320
320
} ,
321
321
ctorDescriptor : new SyncDescriptor ( ChatViewPane , [ { location : ChatAgentLocation . Panel } ] ) ,
322
322
when : ContextKeyExpr . or (
323
+ ChatContextKeys . Setup . triggered ,
324
+ ChatContextKeys . Setup . signingIn ,
325
+ ChatContextKeys . Setup . installing ,
326
+ ChatContextKeys . Setup . installed ,
323
327
ChatContextKeys . panelParticipantRegistered ,
324
- ChatContextKeys . extensionInvalid ,
325
- ChatContextKeys . setupRunning
328
+ ChatContextKeys . extensionInvalid
326
329
)
327
330
} ] ;
328
331
Registry . as < IViewsRegistry > ( ViewExtensions . ViewsRegistry ) . registerViews ( viewDescriptor , this . _viewContainer ) ;
@@ -368,7 +371,10 @@ export class ChatExtensionPointHandler implements IWorkbenchContribution {
368
371
order : 2
369
372
} ,
370
373
ctorDescriptor : new SyncDescriptor ( ChatViewPane , [ { location : ChatAgentLocation . EditingSession } ] ) ,
371
- when : ChatContextKeys . editingParticipantRegistered
374
+ when : ContextKeyExpr . or (
375
+ ChatContextKeys . Setup . installed ,
376
+ ChatContextKeys . editingParticipantRegistered
377
+ )
372
378
} ] ;
373
379
Registry . as < IViewsRegistry > ( ViewExtensions . ViewsRegistry ) . registerViews ( viewDescriptor , viewContainer ) ;
374
380
@@ -402,7 +408,7 @@ export class ChatCompatibilityNotifier extends Disposable implements IWorkbenchC
402
408
extensionsWorkbenchService . onDidChangeExtensionsNotification ,
403
409
( ) => {
404
410
const notification = extensionsWorkbenchService . getExtensionsNotification ( ) ;
405
- const chatExtension = notification ?. extensions . find ( ext => ext . identifier . id === 'github.copilot-chat' ) ;
411
+ const chatExtension = notification ?. extensions . find ( ext => ExtensionIdentifier . equals ( ext . identifier . id , this . productService . defaultChatAgent ?. chatExtensionId ) ) ;
406
412
if ( chatExtension ) {
407
413
isInvalid . set ( true ) ;
408
414
this . registerWelcomeView ( chatExtension ) ;
@@ -420,9 +426,9 @@ export class ChatCompatibilityNotifier extends Disposable implements IWorkbenchC
420
426
421
427
this . registeredWelcomeView = true ;
422
428
const showExtensionLabel = localize ( 'showExtension' , "Show Extension" ) ;
423
- const mainMessage = localize ( 'chatFailErrorMessage' , "Chat failed to load because the installed version of the {0} extension is not compatible with this version of {1}. Please ensure that the GitHub Copilot Chat extension is up to date." , 'GitHub Copilot Chat' , this . productService . nameLong ) ;
424
- const commandButton = `[${ showExtensionLabel } ](command:${ showExtensionsWithIdsCommandId } ?${ encodeURIComponent ( JSON . stringify ( [ [ 'GitHub.copilot-chat' ] ] ) ) } )` ;
425
- const versionMessage = `GitHub Copilot Chat version: ${ chatExtension . version } ` ;
429
+ const mainMessage = localize ( 'chatFailErrorMessage' , "Chat failed to load because the installed version of the {0} extension is not compatible with this version of {1}. Please ensure that the {2} extension is up to date." , this . productService . defaultChatAgent ?. chatName , this . productService . nameLong , this . productService . defaultChatAgent ?. chatName ) ;
430
+ const commandButton = `[${ showExtensionLabel } ](command:${ showExtensionsWithIdsCommandId } ?${ encodeURIComponent ( JSON . stringify ( [ [ this . productService . defaultChatAgent ?. chatExtensionId ] ] ) ) } )` ;
431
+ const versionMessage = `${ this . productService . defaultChatAgent ?. chatName } version: ${ chatExtension . version } ` ;
426
432
const viewsRegistry = Registry . as < IViewsRegistry > ( ViewExtensions . ViewsRegistry ) ;
427
433
this . _register ( viewsRegistry . registerViewWelcomeContent ( ChatViewId , {
428
434
content : [ mainMessage , commandButton , versionMessage ] . join ( '\n\n' ) ,
0 commit comments