305
306
constructor(
307
>
@IContextKeyService private readonly contextKeyService: IContextKeyService,
chatAgents.ts
308
>
@IConfigurationService private readonly configurationService: IConfigurationService,
309
>
) {
310
>
super();
311
>
this._hasDefaultAgent = ChatContextKeys.enabled.bindTo(this.contextKeyService);
312
>
this._extensionAgentRegistered = ChatContextKeys.extensionParticipantRegistered.bindTo(this.contextKeyService);
313
>
this._defaultAgentRegistered = ChatContextKeys.panelParticipantRegistered.bindTo(this.contextKeyService);
314
>
this._register(contextKeyService.onDidChangeContext((e) => {
315
if (e.affectsSome(this._agentsContextKeys)) {
316
this._updateContextKeys();
317
}
319
>
}
320
321
registerAgent(id: string, data: IChatAgentData): IDisposable {