File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
src/vs/workbench/contrib/chat/common Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -493,13 +493,16 @@ export class ChatService extends Disposable implements IChatService {
493
493
throw new ErrorNoTelemetry ( 'No default agent contributed' ) ;
494
494
}
495
495
496
- // No setup participant to fall back on- wait for extension activation
497
- // Using `activateById` as workaround for https://github.com/microsoft/vscode/issues/250590
498
- await this . extensionService . activateById ( defaultAgentData . extensionId , {
499
- activationEvent : `onChatParticipant:${ defaultAgentData . id } ` ,
500
- extensionId : defaultAgentData . extensionId ,
501
- startup : false
502
- } ) ;
496
+ // Await activation of the extension provided agent
497
+ // Using `activateById` as workaround for the issue
498
+ // https://github.com/microsoft/vscode/issues/250590
499
+ if ( ! defaultAgentData . isCore ) {
500
+ await this . extensionService . activateById ( defaultAgentData . extensionId , {
501
+ activationEvent : `onChatParticipant:${ defaultAgentData . id } ` ,
502
+ extensionId : defaultAgentData . extensionId ,
503
+ startup : false
504
+ } ) ;
505
+ }
503
506
504
507
const defaultAgent = this . chatAgentService . getActivatedAgents ( ) . find ( agent => agent . id === defaultAgentData . id ) ;
505
508
if ( ! defaultAgent ) {
You can’t perform that action at this time.
0 commit comments