Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/extension-guides/ai/chat.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ Get more info about the [naming conventions for slash commands](#slash-command-n

### 4. Register follow-up requests

After each chat request, VS Code invokes follow-up providers to get suggested follow-up questions to show to the user. The user can then select the follow-up question, and immediately send it to the chat extension. Follow-up questions can provide inspiration to the user to take the conversation further, or to discover more capabilities of the chat extension.
After each chat request, VS Code invokes follow-up providers to get suggested follow-up questions to show to the user. The user can then select the follow-up question, and immediately send it to the chat extension. Use the [`ChatFollowupProvider`](/api/references/vscode-api#ChatFollowupProvider) API to register follow-up prompts of type [`ChatFollowup`](/api/references/vscode-api#ChatFollowup).

The following code snippet shows how to register follow-up requests in a chat extension:

Expand All @@ -236,7 +236,7 @@ cat.followupProvider = {
if (result.metadata.command === 'teach') {
return [{
prompt: 'let us play',
title: vscode.l10n.t('Play with the cat')
label: vscode.l10n.t('Play with the cat')
} satisfies vscode.ChatFollowup];
}
}
Expand Down