Skip to content

Conversation

@Rajaniraiyn
Copy link

@Rajaniraiyn Rajaniraiyn commented Oct 27, 2025

enables SCM graph history item into,

  • terminal
  • editor
  • external apps
Screen.Recording.2025-10-28.at.1.00.26.AM.mov

Before

  • we can't drop commits into terminal
  • dropping into editor will paste internal URI
  • can't drag outside of vscode

Copilot AI review requested due to automatic review settings October 27, 2025 19: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 enables drag-and-drop functionality for SCM (Source Control Management) history items (commits) into terminals, editors, and external applications. Previously, commits couldn't be dropped into terminals, dropping into editors would paste internal URIs, and dragging outside VS Code wasn't supported.

Key changes:

  • Added support for dropping SCM history items into terminal instances, which pastes the commit hash
  • Implemented text data transfer for SCM history items to enable dragging to editors and external apps
  • Integrated SCM history item drop handling into the terminal's drag-and-drop controller

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/vs/workbench/contrib/terminal/browser/terminalInstance.ts Added event handling for SCM history item drops in terminal, extracting commit hash and sending it as text
src/vs/workbench/contrib/scm/browser/scmHistoryViewPane.ts Added TEXT data transfer type to enable dragging commit IDs to editors and external applications

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