Inline chat fixes/feature (#208393)

* only show slash command as detected when not having typed one

* use clearer message that hunks need to be accepted or discard, also add hover with more details

fixes https://github.com/microsoft/vscode/issues/206939
This commit is contained in:
Johannes Rieken
2024-03-22 13:24:07 +01:00
committed by GitHub
parent a00f2e64f4
commit ad5a40fb18
4 changed files with 43 additions and 65 deletions

View File

@@ -93,7 +93,8 @@ class BridgeAgent implements IChatAgentImplementation {
// if (data.message) {
// progress({ kind: 'progressMessage', content: new MarkdownString(data.message) });
// }
if (data.slashCommand) {
// TODO@ulugbekna,jrieken should we only send data.slashCommand when having detected one?
if (data.slashCommand && !inlineRequest.prompt.startsWith('/')) {
const command = this._data.slashCommands.find(c => c.name === data.slashCommand);
progress({ kind: 'agentDetection', agentId: this._data.id, command });
}