From 7a912cf175ddaf30438ce20c6d0af1457e456439 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Fri, 24 May 2024 14:19:50 -0700 Subject: [PATCH 1/2] Change proposal for chat participant "when" clause --- .../contrib/chat/browser/chatParticipantContributions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/chat/browser/chatParticipantContributions.ts b/src/vs/workbench/contrib/chat/browser/chatParticipantContributions.ts index 0b0eb44b222ac..e489e1f939c86 100644 --- a/src/vs/workbench/contrib/chat/browser/chatParticipantContributions.ts +++ b/src/vs/workbench/contrib/chat/browser/chatParticipantContributions.ts @@ -201,8 +201,8 @@ export class ChatExtensionPointHandler implements IWorkbenchContribution { store.add(this.registerDefaultParticipantView(providerDescriptor)); } - if (providerDescriptor.when && !isProposedApiEnabled(extension.description, 'chatParticipantPrivate')) { - this.logService.error(`Extension '${extension.description.identifier.value}' CANNOT use API proposal: chatParticipantPrivate.`); + if (providerDescriptor.when && !isProposedApiEnabled(extension.description, 'chatParticipantAdditions')) { + this.logService.error(`Extension '${extension.description.identifier.value}' CANNOT use API proposal: chatParticipantAdditions.`); continue; } From a392d62ab1a241b78c15fab4a8fc4d9cc1035e32 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Fri, 24 May 2024 14:22:35 -0700 Subject: [PATCH 2/2] This --- .../contrib/chat/browser/chatParticipantContributions.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/vs/workbench/contrib/chat/browser/chatParticipantContributions.ts b/src/vs/workbench/contrib/chat/browser/chatParticipantContributions.ts index e489e1f939c86..509e8a590042e 100644 --- a/src/vs/workbench/contrib/chat/browser/chatParticipantContributions.ts +++ b/src/vs/workbench/contrib/chat/browser/chatParticipantContributions.ts @@ -204,7 +204,6 @@ export class ChatExtensionPointHandler implements IWorkbenchContribution { if (providerDescriptor.when && !isProposedApiEnabled(extension.description, 'chatParticipantAdditions')) { this.logService.error(`Extension '${extension.description.identifier.value}' CANNOT use API proposal: chatParticipantAdditions.`); continue; - } store.add(this._chatAgentService.registerAgent(