Skip to content

Commit 9718993

Browse files
committed
alert SR users with error details if any
1 parent 1bd0632 commit 9718993

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/workbench/contrib/chat/browser/chatWidget.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ export class ChatWidget extends Disposable implements IChatWidget {
386386
const responses = this.viewModel?.getItems().filter(isResponseVM);
387387
const lastResponse = responses?.[responses.length - 1];
388388
if (lastResponse) {
389-
alert(lastResponse.response.value);
389+
const errorDetails = lastResponse.errorDetails ? ` ${lastResponse.errorDetails}` : '';
390+
alert(lastResponse.response.value + errorDetails);
390391
}
391392
});
392393
}

0 commit comments

Comments
 (0)