mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Merge pull request #183439 from microsoft/merogge/alert-error
This commit is contained in:
commit
1052813be2
|
@ -386,7 +386,8 @@ export class ChatWidget extends Disposable implements IChatWidget {
|
|||
const responses = this.viewModel?.getItems().filter(isResponseVM);
|
||||
const lastResponse = responses?.[responses.length - 1];
|
||||
if (lastResponse) {
|
||||
alert(lastResponse.response.value);
|
||||
const errorDetails = lastResponse.errorDetails ? ` ${lastResponse.errorDetails.message}` : '';
|
||||
alert(lastResponse.response.value + errorDetails);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue