Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: chat participation detection api #224651

Merged
merged 2 commits into from
Aug 2, 2024
Merged

Conversation

joyceerhl
Copy link
Contributor

No description provided.

@joyceerhl joyceerhl self-assigned this Aug 2, 2024
@joyceerhl joyceerhl enabled auto-merge (squash) August 2, 2024 22:29
@joyceerhl joyceerhl marked this pull request as draft August 2, 2024 22:29
auto-merge was automatically disabled August 2, 2024 22:29

Pull request was converted to draft

@joyceerhl joyceerhl force-pushed the dev/joyceerhl/retired-dolphin branch from 34f3ccf to 067038b Compare August 2, 2024 22:31
@joyceerhl joyceerhl marked this pull request as ready for review August 2, 2024 22:32
@vs-code-engineering vs-code-engineering bot added this to the August 2024 milestone Aug 2, 2024
}

async detectAgentOrCommand(request: IChatAgentRequest, history: IChatAgentHistoryEntry[], options: { location: ChatAgentLocation }, token: CancellationToken): Promise<{ agent: IChatAgentData; command?: IChatAgentCommand } | undefined> {
// TODO@joyceerhl should we have a selector to be able to narrow down which provider to use
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine to assume that there will only ever be one, this is probably only private API for us.

@@ -245,6 +245,23 @@ declare module 'vscode' {
* The chat extension should not activate if it doesn't support the current version.
*/
export const _version: 1 | number;

export function registerChatParticipantDetectionProvider(participantDetectionProvider: ChatParticipantDetectionProvider): Disposable;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another idea I just thought of is that this would make sense on the default participant, like welcomeMessageProvider etc, but I think this shape is fine too.

roblourens
roblourens previously approved these changes Aug 2, 2024
@joyceerhl joyceerhl merged commit d4c164e into main Aug 2, 2024
6 checks passed
@joyceerhl joyceerhl deleted the dev/joyceerhl/retired-dolphin branch August 2, 2024 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants