Skip to content

Dragging a file into one terminal editor while holding Shift inserts the path into other terminal editors as well #311164

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.115.0 (41dd792)
  • OS Version: Windows 10 Home China 26200

Steps to Reproduce:

  1. Open VS Code on Windows.
  2. Create two integrated terminals in the editor area (not in the panel). In my case both use Git Bash.
  3. Make sure they are separate shell sessions, for example echo $$ returns different PIDs in terminal A and terminal B.
  4. Leave both terminals idle.
  5. 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.
  6. 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.

Activity

  1. vs-code-engineering commented on Apr 18, 2026

    @vs-code-engineering
    Contributor

    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!

  2. AnlloXander commented on Apr 18, 2026

    @AnlloXander
    Author

    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).

  3. added
    stale
    on Apr 25, 2026
  4. vladstudio commented on May 28, 2026

    @vladstudio

    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

  5. davyd15 commented on Jul 29, 2026

    @davyd15

    Still reproduces on macOS with the current stable build.

    • VS Code 1.130.0 (1b6a188)
    • macOS 26.5.2 (25F84), Apple Silicon (arm64)
    • 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:

    1. 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.
    2. 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.

  6. removed
    stale
    on Aug 16, 2026
  7. added
    terminal
    on Aug 16, 2026
  8. 2 remaining items

  9. added this to the 1.138.0 milestone on Sep 8, 2026
  10. added
    insiders-released
    and removed
    unreleased
    on Sep 9, 2026
  11. removed
    insiders-released
    on Sep 12, 2026
  12. added a commit that references this issue on Sep 12, 2026
    9e9bd55
  13. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Sep 12, 2026
  14. added
    bug
    on Sep 19, 2026
  15. added a commit that references this issue on Sep 23, 2026
    6d574de
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buginsiders-releasedterminalverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions