Skip to content

Commit 9409b89

Browse files
authored
chat: fix working set readonly state being lost after sending (microsoft#237702)
1 parent d665c1b commit 9409b89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export class ChatEditingSession extends Disposable implements IChatEditingSessio
284284
if (requestId) {
285285
for (const [uri, data] of this._workingSet) {
286286
if (data.state !== WorkingSetEntryState.Suggested) {
287-
this._workingSet.set(uri, { state: WorkingSetEntryState.Sent });
287+
this._workingSet.set(uri, { state: WorkingSetEntryState.Sent, isMarkedReadonly: data.isMarkedReadonly });
288288
}
289289
}
290290
const linearHistory = this._linearHistory.get();

0 commit comments

Comments
 (0)