Add chatParticipant contribution point (#206474)

* Add package.json registration for chat agents

* Update for tests

* Separate static and dynamic chat agent parts

* Handle participant registration correctly

* Fix tests

* Fix test

* Remove commented code

* Fix more tests

* Pluralize

* Pluralize test contribution
This commit is contained in:
Rob Lourens
2024-02-29 11:52:12 -03:00
committed by GitHub
parent 4e81df7ea9
commit 00abefa3e2
32 changed files with 477 additions and 356 deletions

View File

@@ -45,11 +45,6 @@ suite('chat', () => {
return null;
});
participant.isDefault = true;
participant.commandProvider = {
provideCommands: (_token) => {
return [{ name: 'hello', description: 'Hello' }];
}
};
disposables.push(participant);
return emitter.event;
}
@@ -102,11 +97,6 @@ suite('chat', () => {
return { metadata: { key: 'value' } };
});
participant.isDefault = true;
participant.commandProvider = {
provideCommands: (_token) => {
return [{ name: 'hello', description: 'Hello' }];
}
};
participant.followupProvider = {
provideFollowups(result, _token) {
deferred.complete(result);