mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-25 04:36:23 +00:00
Fix for completing response if needed (#282325)
* Fix for completing response if needed * Review comments * Delte extra complete call * Make it default behavior of complete
This commit is contained in:
@@ -1069,6 +1069,10 @@ export class ChatResponseModel extends Disposable implements IChatResponseModel
|
||||
}
|
||||
|
||||
complete(): void {
|
||||
// No-op if it's already complete
|
||||
if (this.isComplete) {
|
||||
return;
|
||||
}
|
||||
if (this._result?.errorDetails?.responseIsRedacted) {
|
||||
this._response.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user