[WSL + remote-ssh] cannot drap&drop file from WSL to remote SSH
- VSCode Version: 1.78.2 (system setup)
- Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
- Local OS Version: Windows 11 22H2 (compilation 22621.1702)
- Remote OS Version (remote-ssh): Linux raspberrypi 6.1.21-v8+ aarch64 (from `uname -a` output)
- Remote Extension/Connection Type: remote-ssh
- Remote OS Version (WSL2): 5.15.90.1-microsoft-standard-WSL2 (`uname -r` output), Debian
- Remote Extension/Connection Type: WSL2
Does this issue occur when you try this locally?: No* (see note at end of Bug Description)
Bug Description
Cannot copy (dragp & drop) files from WSL container to remote-ssh on vscode.
Error "The dropped file could not be accessed for import." shows after trying to copy file from WSL container (on file explorer) to remote-ssh (on vscode).
Note: drap & drop from host local file to remote-ssh works! It seems the problem is with |WSL hosted files| <----> |remote-ssh|
Steps to Reproduce:
setup:
- Have a WSL container installed and running
- Have a VScode connetected to a remote host through remote-ssh
Reproducing bug:
- Through windows file explorer, pick any file/folder from the WSL machine
- Drag & drop the file/folder to vscode with remote-ssh
- get error
"The dropped file could not be accessed for import."
Same phenomenon occurs too in my settings. (|WSL hosted files| <----> |remote-ssh|)
VS Code version: 1.79.2 (system setup) Windows Version: Windows 11 22H2 (OS Build 22621.1848)
any updates or hints on this?
I am seeing the same problem when trying to copy a file from one explorer that's connected to, say host X, to another explorer window connected to host Y.
I'm experiencing the same issue even after adding wsl.localhost as an Allowed UNCHosts in settings, and reloading the window.
That message pops up for me as well....
I'm experiencing the same issue even after adding wsl.localhost as an Allowed UNCHosts in settings, and reloading the window.
That message pops up for me as well....
i confirm the exact same
@lramos15 any updates on this?
any solution?
I am experiencing this as well. Would be nice to be able to use VS Code to move files instead of having another SFTP software to install and use.
any solution?
@ErnestoR2 I gave up a long time ago
It stopped to work for me just now, when i tried to copy the path from the file i saw it wasn't adding the wsl path for the folders in it. So I extracted the images from zip with it's wsl full path and it worked, try to add \wsl.localhost\Ubuntu<your_folder_path>. If you use other then Ubuntu linux distribuition, just replace it with yours. Hope it helps