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:
Rob Lourens
2024-02-19 19:52:19 +00:00
committed by GitHub
parent 74724fbcb0
commit efc04b885e
9 changed files with 78 additions and 58 deletions

View File

@@ -10,6 +10,7 @@
"chatParticipant",
"languageModels",
"defaultChatParticipant",
"chatVariableResolver",
"contribViewsRemote",
"contribStatusBarItems",
"createFileSystemWatcher",

View File

@@ -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' }];
}