Skip to content

Commit 4621927

Browse files
authored
fix: reset request failed context key for chat editing when session is cleared (microsoft#232848)
1 parent 19fabc2 commit 4621927

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingService.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ export class ChatEditingService extends Disposable implements IChatEditingServic
136136
return this._currentSessionObs.read(r)?.canRedo.read(r) || false;
137137
}));
138138
this._register(this._chatService.onDidDisposeSession((e) => {
139+
this._applyingChatEditsFailedContextKey.set(false);
139140
if (e.reason === 'cleared' && this._currentSessionObs.get()?.chatSessionId === e.sessionId) {
140141
void this._currentSessionObs.get()?.stop();
141142
}

0 commit comments

Comments
 (0)