theia icon indicating copy to clipboard operation
theia copied to clipboard

Draging a File into the Editor Opens File _and_ Pastes Text

Open tsmaeder opened this issue 1 year ago • 1 comments

Bug Description:

When dragging a file form the OS file explorer into a text editor, we should either paste the contents of the dragged file into the editor or open the file in a new editor. Right now, we do both. VS Code differentiates between the cases by pasting if the shift key is pressed during drop.

Steps to Reproduce:

  1. Open a text editor
  2. Drag a text file into the editor: note that you get a visual indication of the drop location
  3. Drop the file
  4. Observe: the file contents are pasted at the drop location, but also a new editor with the dropped file is opened.

Additional Information

  • Operating System: Win 11
  • Theia Version: 1.39.0 master

tsmaeder avatar Jul 24 '23 11:07 tsmaeder

It has not been solved so far.

yanquer avatar Mar 28 '24 05:03 yanquer