Skip to content

Commit

Permalink
fix: promote suggested file to working set when opened (microsoft#236737
Browse files Browse the repository at this point in the history
)
  • Loading branch information
joyceerhl authored Dec 20, 2024
1 parent 23aee3d commit 0f2ee1f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0f2ee1f

Please sign in to comment.