File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/vs/workbench/contrib/chat/browser/chatEditing Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -265,8 +265,8 @@ export class ChatEditingSession extends Disposable implements IChatEditingSessio
265
265
}
266
266
if ( existingTransientEntries . has ( uri ) ) {
267
267
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
270
270
// or if the user has intentionally removed it from the working set
271
271
activeEditors . add ( uri ) ;
272
272
}
You can’t perform that action at this time.
0 commit comments