Skip to content

Commit

Permalink
fix: handle adding a related file suggestion to the working set (#234279
Browse files Browse the repository at this point in the history
)
  • Loading branch information
joyceerhl authored Nov 20, 2024
1 parent c95a176 commit fc03f2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ export class ChatEditingSession extends Disposable implements IChatEditingSessio
}
this._workingSet.set(resource, { description, state: WorkingSetEntryState.Suggested });
this._onDidChange.fire(ChatEditingSessionChangeType.WorkingSet);
} else if (state === undefined || state.state === WorkingSetEntryState.Transient) {
} else if (state === undefined || state.state === WorkingSetEntryState.Transient || state.state === WorkingSetEntryState.Suggested) {
this._workingSet.set(resource, { description, state: WorkingSetEntryState.Attached });
this._onDidChange.fire(ChatEditingSessionChangeType.WorkingSet);
}
Expand Down

0 comments on commit fc03f2b

Please sign in to comment.