Skip to content

Commit

Permalink
Change proposal for chat participant "when" clause (#213427)
Browse files Browse the repository at this point in the history
* Change proposal for chat participant "when" clause

* This
  • Loading branch information
roblourens authored May 24, 2024
1 parent 4f03e92 commit 937aa31
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,9 @@ 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;

}

store.add(this._chatAgentService.registerAgent(
Expand Down

0 comments on commit 937aa31

Please sign in to comment.