microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.28k stars 29.31k forks source link

Drag and drop from operating system doesn't work (Ubuntu 24) #232803

Open geajack opened 1 week ago

geajack commented 1 week ago

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

Steps to Reproduce:

I am using stock VS Code, freshly installed, from the debian file on the official website. When I drag and drop a file from my file manager (I'm using Nemo), it doesn't open in VSCode. If a file is open already, it pastes the new file in as a link.

https://github.com/user-attachments/assets/32fb4b09-3681-4056-b9e4-4c5c0f63637a

As you can see in this video, the behavior is actually a bit random - the functionality works as expected maybe 10% of the time.

I couldn't reproduce it in the video, but I've noticed if I drag a file into the tab area above the open editor panes in VS Code, often the file will open but with a bad filename, with a bunch of numbers after it:

Image

bpasero commented 1 week ago

How about doing this on vscode.dev with a browser?

geajack commented 1 week ago

Yup, that seems to work fine.

bpasero commented 1 week ago

In that case I suspect a Electron issue. Moving to @deepak1556 for comment.