fix: promote suggested file to working set when opened (#236737)

pull/236749/head
Joyce Er 2024-12-20 10:29:11 -08:00 committed by GitHub
parent 23aee3d360
commit 0f2ee1f669
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -265,8 +265,8 @@ export class ChatEditingSession extends Disposable implements IChatEditingSessio
}
if (existingTransientEntries.has(uri)) {
existingTransientEntries.delete(uri);
} else if (!this._workingSet.has(uri) && !this._removedTransientEntries.has(uri)) {
// Don't add as a transient entry if it's already part of the working set
} else if ((!this._workingSet.has(uri) || this._workingSet.get(uri)?.state === WorkingSetEntryState.Suggested) && !this._removedTransientEntries.has(uri)) {
// Don't add as a transient entry if it's already a confirmed part of the working set
// or if the user has intentionally removed it from the working set
activeEditors.add(uri);
}