[BUG] VS Code extension Shift + Drag and Drop file in chat window not working

Status Open
Reported on v2.1.291
Maintainer reply None cached
Activity 4 comments · opened Oct 6, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

The Claude Code extension used to allow for dragging files from the Explorer File Tree view or a Tab for a file to be added into the Claude Code chat field: Shift + drag file.

I updated VS Code and this functionality no longer works.

VS Code details:
Version: 1.140.0 (Universal)
Commit: 07f806f999227108933c2e30515b26eecc1fda74
Date: 2026-09-30T10:38:38+02:00
Electron: 43.7.3
ElectronBuildId: 15386805
Chromium: 150.0.7871.250
Node.js: 24.21.0
V8: 15.0.245.31-electron.0
@github/copilot: 1.0.89-7
@github/copilot-sdk: 1.0.15-preview.4
OS: Darwin arm64 25.6.0

Claude Code Extension details:
Version: 2.1.291

What Should Happen?

Shift + Drag and drop should attach files into the chat

Error Messages/Logs

Steps to Reproduce

  1. VS Code w/ Claude Code extension installed
  2. Shift + Drag drop file into the chat sidebar / view

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.245

Platform

Google Vertex AI

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

3 Comments

jackson-robbins-tag · 8 days ago
Lawrence-Godfrey · 7 days ago

Same here on 2.1.292, VSCode, MacOS

dnlkhl013 · 6 days ago

Same issue on macOS, still present in VS Code 1.141.0.

Key detail: Shift + drag from Finder into the Claude Code chat still works fine.
Only Shift + drag from the built-in VS Code Explorer (file tree) is broken —
the file is not added to the chat.

  • VS Code: 1.141.0 (Universal), commit 2a59476c9bfcb90b3ddc372c36762471b7dfad1c, 2026-10-06
  • Electron: 43.7.7, Chromium: 150.0.7871.250
  • Claude Code extension: 2.1.294
  • OS: Darwin arm64 27.0.0
  • Chat location: secondary sidebar (right)
  • Webview Developer Tools console on drop: nothing logged — the drop event

doesn't reach the webview at all

Updating both VS Code and the extension to latest did not help.

Root cause is upstream in VS Code / Electron, not in this extension:

  • VS Code 1.140 bumped Electron 43.6.0 → 43.7.3 (microsoft/vscode#336697).
  • Electron 43.7 includes electron/electron#53750, which restores Chromium's

cross-site drag target check within the same WebContents.

  • VS Code extension webviews are cross-site iframes (vscode-webview://), so an

Explorer → webview drag is now rejected by the browser before any JS drop
handler runs. Finder drags come from the OS and are unaffected.

  • This affects all extension webviews (sidebar and editor tab), not just Claude Code.

Tracked in microsoft/vscode#339036 (also #339278), assigned to the 1.142.0 milestone.
Workaround until then: downgrade to VS Code 1.139.x, or use Option+Cmd+K / @
to reference files.

Showing cached comments. Read the full discussion on GitHub ↗