You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dragging a file into one terminal editor while holding Shift inserts the path into other terminal editors as well #311164
bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersterminalGeneral terminal issues that don't fall under another labelverifiedVerification succeeded
Create two integrated terminals in the editor area (not in the panel). In my case both use Git Bash.
Make sure they are separate shell sessions, for example echo $$ returns different PIDs in terminal A and terminal B.
Leave both terminals idle.
From the Explorer, drag a file into terminal A while holding Shift so VS Code inserts the file path into the terminal instead of opening the file in the editor.
Observe that terminal B also receives the same file path even though the file was only dropped on terminal A.
Expected:
Only terminal A should receive the dropped file path.
Actual:
Both terminal editor instances receive the same file path.
Notes:
Reproduces with code --disable-extensions.
This is specifically about terminals opened in the editor area.
If I do not hold Shift, the file opens in the editor, which is expected.
The two terminals are not the same shell session. Example PIDs from echo $$: A=8554, B=8599.
Reacted by Vlad Gerasimov, hiepremium and Chris E.
Thanks for creating this issue! It looks like you may be using an old version of VS Code; the latest stable release is 1.116.0. Please try upgrading to the latest version and checking whether this issue remains.
Still reproduces after disabling the extension I first suspected
(Anthropic's Claude Code extension, which also talks to terminals)
Two additions to the original report, in case they help narrow it down:
The shell does not matter. I hit this with plain zsh terminals, no
program running in them. Every terminal editor in the window receives the
dropped path, not just the drop target.
It also happens when dragging from outside VS Code — in my case the
macOS screenshot thumbnail that appears in the bottom right corner, dragged
straight into a terminal editor. Same result: the path lands in all terminal
editors.
Terminals in the panel are unaffected, which matches the original report that
this is specific to terminal editors.
Practical impact: I keep 6–10 terminal editors open (one per project) and use
drag and drop for screenshots many times a day. Every drop currently pollutes
the input line of every other terminal, which has to be cleared by hand before
that terminal can be used again.
There is an open PR that appears to address exactly this (#318756, "Fix
terminal-editor shift-drop firing on detached instances"), untouched since
2026-05-28. Happy to test a build if that helps.
bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersterminalGeneral terminal issues that don't fall under another labelverifiedVerification succeeded
Activity
vs-code-engineering commentedon Apr 18, 2026
Thanks for creating this issue! It looks like you may be using an old version of VS Code; the latest stable release is 1.116.0. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!
AnlloXander commentedon Apr 18, 2026
I updated to VS Code 1.116.0 (560a9db) on Windows 10 Home China 26200 and the issue still reproduces with the same steps.
It also still reproduces with extensions disabled.
The two editor-area terminals are still separate shell sessions (different
echo $$PIDs).vladstudio commentedon May 28, 2026
Still reproducable on Version: 1.122.0
Commit: 6a49527
Date: 2026-05-27T14:03:01-07:00 (17 hrs ago)
Electron: 39.8.8
ElectronBuildId: 13870025
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 24.6.0
davyd15 commentedon Jul 29, 2026
Still reproduces on macOS with the current stable build.
(Anthropic's Claude Code extension, which also talks to terminals)
Two additions to the original report, in case they help narrow it down:
zshterminals, noprogram running in them. Every terminal editor in the window receives the
dropped path, not just the drop target.
macOS screenshot thumbnail that appears in the bottom right corner, dragged
straight into a terminal editor. Same result: the path lands in all terminal
editors.
Terminals in the panel are unaffected, which matches the original report that
this is specific to terminal editors.
Practical impact: I keep 6–10 terminal editors open (one per project) and use
drag and drop for screenshots many times a day. Every drop currently pollutes
the input line of every other terminal, which has to be cleared by hand before
that terminal can be used again.
There is an open PR that appears to address exactly this (#318756, "Fix
terminal-editor shift-drop firing on detached instances"), untouched since
2026-05-28. Happy to test a build if that helps.
2 remaining items
Fix terminal-editor shift-drop on detached instances (#335945)
Fix terminal-editor shift-drop on detached instances (microsoft#335945)