We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f78098 commit 61953c1Copy full SHA for 61953c1
src/vs/workbench/contrib/chat/common/chatServiceImpl.ts
@@ -670,9 +670,11 @@ export class ChatService extends Disposable implements IChatService {
670
location
671
});
672
const rawResult: IChatAgentResult = { errorDetails: { message: err.message } };
673
- model.setResponse(request, rawResult);
+ if (request) {
674
+ model.setResponse(request, rawResult);
675
+ }
676
completeResponseCreated();
- this.trace('sendRequest', `Error while handling request: ${toErrorMessage(err)}`);
677
+ this.logService.error(`Error while handling chat request: ${toErrorMessage(err)}`);
678
model.completeResponse(request);
679
} finally {
680
listener.dispose();
0 commit comments