Skip to content

Commit 0f2ee1f

Browse files
authored
fix: promote suggested file to working set when opened (microsoft#236737)
1 parent 23aee3d commit 0f2ee1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ export class ChatEditingSession extends Disposable implements IChatEditingSessio
265265
}
266266
if (existingTransientEntries.has(uri)) {
267267
existingTransientEntries.delete(uri);
268-
} else if (!this._workingSet.has(uri) && !this._removedTransientEntries.has(uri)) {
269-
// Don't add as a transient entry if it's already part of the working set
268+
} else if ((!this._workingSet.has(uri) || this._workingSet.get(uri)?.state === WorkingSetEntryState.Suggested) && !this._removedTransientEntries.has(uri)) {
269+
// Don't add as a transient entry if it's already a confirmed part of the working set
270270
// or if the user has intentionally removed it from the working set
271271
activeEditors.add(uri);
272272
}

0 commit comments

Comments
 (0)