Skip to content

Conversation

@osortega
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 24, 2026 02:27
@osortega osortega self-assigned this Jan 24, 2026
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 24, 2026
@osortega osortega enabled auto-merge January 24, 2026 02:37
@osortega osortega disabled auto-merge January 24, 2026 02:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds session resource context to chat session picker action items, allowing commands in option group pickers to receive the current session's URI as their first argument.

Changes:

  • Added sessionResource parameter to ChatSessionPickerActionItem and SearchableOptionPickerActionItem constructors
  • Modified command execution to prepend session resource to command arguments when available
  • Updated instantiation call in chatInputPart.ts to pass the session resource

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts Passes session resource from view model to picker widgets during instantiation
src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.ts Updates constructor to pass undefined for session resource to parent class
src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.ts Adds session resource parameter and logic to prepend it to command arguments

roblourens
roblourens previously approved these changes Jan 24, 2026
rebornix
rebornix previously approved these changes Jan 24, 2026
dmitrivMS
dmitrivMS previously approved these changes Jan 24, 2026
@osortega osortega enabled auto-merge January 25, 2026 05:23
@osortega osortega merged commit 38def40 into main Jan 25, 2026
22 checks passed
@osortega osortega deleted the osortega/toxic-moth branch January 25, 2026 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants