Skip to content

Add File to Chat" does nothing when right-clicking a non-active editor tab#315197

Open
damonxue wants to merge 3 commits intomicrosoft:mainfrom
damonxue:patch-1
Open

Add File to Chat" does nothing when right-clicking a non-active editor tab#315197
damonxue wants to merge 3 commits intomicrosoft:mainfrom
damonxue:patch-1

Conversation

@damonxue
Copy link
Copy Markdown

@damonxue damonxue commented May 8, 2026

Copilot AI review requested due to automatic review settings May 8, 2026 07:18
Copy link
Copy Markdown
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

Fixes the Chat “Add File to Chat” editor-tab context menu action so it correctly attaches the file from the right-clicked (non-active) editor tab by forwarding the command arguments properly into editor context resolution.

Changes:

  • Passes _getResources rest arguments through to _getEditorResources using spread (...args) to avoid nesting and ensure resolveCommandsContext receives the expected shape.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants