Skip to content

Commit

Permalink
Update src/vs/workbench/contrib/terminalContrib/chat/browser/terminal…
Browse files Browse the repository at this point in the history
…ChatController.ts
  • Loading branch information
meganrogge authored Mar 29, 2024
1 parent 9cc4e15 commit 2af438e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ export class TerminalChatController extends Disposable implements ITerminalContr
}
const widget = await this._chatWidgetService.revealViewForProvider(providerInfo.id);
const request = this._currentRequest;
if (!widget || !request) {
if (!widget || !request?.response) {
return;
}
this._chatService.addCompleteRequest(widget!.viewModel!.sessionId,
Expand Down

0 comments on commit 2af438e

Please sign in to comment.