File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/vs/workbench/contrib/chat/browser/chatEditing Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ export class ChatEditingModifiedNotebookEntry extends AbstractChatEditingModifie
226
226
try {
227
227
this . _isProcessingResponse . set ( true , undefined ) ;
228
228
const notebookDiff = await this . notebookEditorWorkerService . computeDiff ( this . originalURI , this . modifiedURI ) ;
229
- if ( id !== this . computeRequestId ) {
229
+ if ( id !== this . computeRequestId || this . _store . isDisposed ) {
230
230
return ;
231
231
}
232
232
const result = computeDiff ( this . originalModel , this . modifiedModel , notebookDiff ) ;
@@ -746,6 +746,9 @@ export class ChatEditingModifiedNotebookEntry extends AbstractChatEditingModifie
746
746
return true ;
747
747
} ;
748
748
this . resolveCellModel ( cell . uri ) . then ( modifiedModel => {
749
+ if ( this . _store . isDisposed ) {
750
+ return ;
751
+ }
749
752
// We want decorators for the cell just as we display decorators for modified cells.
750
753
// This way we have the ability to accept/reject the entire cell.
751
754
this . getOrCreateModifiedTextFileEntryForCell ( cell , modifiedModel , originalModel ) ;
You can’t perform that action at this time.
0 commit comments