mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
New proposal for chat variable resolver (#205572)
* Tweak ChatFollowup * Remove API TODOs * New proposal for chat variable resolver * Bump distro * Enforce same-extension followup * Add participant proposal to integration test folder * Allow no participant for a followup
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
"chatParticipant",
|
||||
"languageModels",
|
||||
"defaultChatParticipant",
|
||||
"chatVariableResolver",
|
||||
"contribViewsRemote",
|
||||
"contribStatusBarItems",
|
||||
"createFileSystemWatcher",
|
||||
|
||||
@@ -74,7 +74,7 @@ suite('chat', () => {
|
||||
});
|
||||
|
||||
test('participant and variable', async () => {
|
||||
disposables.push(chat.registerVariable('myVar', 'My variable', {
|
||||
disposables.push(chat.registerChatVariableResolver('myVar', 'My variable', {
|
||||
resolve(_name, _context, _token) {
|
||||
return [{ level: ChatVariableLevel.Full, value: 'myValue' }];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user