-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dragging and dropping a file into a WSL terminal will use the incorrect '\' separator #78751
Comments
Note to self: For files dragged in via OS they should be resolved in window, dragged in via file explorer should be resolved in ext host. One complication here is for WSL where we need to run wslpath for files dragged from explorer, this might need better WSL terminal detection and marking terminal instances with additional information. |
For verification: Setup: Windows 10
|
Dragging any file into a wsl integrated terminal doesn't produce a path for me. |
When I start with a powershell integrated terminal, then run git bash.exe, dragging a file from the desktop into the terminal produces the wrong slashes. From VS Code file explorer it's ok. When the integrated terminal starts as git bash it's also ok. |
Finally, when I start with a powershell integrated terminal, then run wsl.exe, dragging a file from the VS Code explorer doesn't produce a path. Dragging a file from the desktop produce a Windows path. |
@alexr00 are you on WSL1? Also what version of Windows? |
Yes, I"m on WSL 1. Windows version 1901, build 18363.418. Default distro is Alpine. |
I also noticed the reverse being true, clicking file names in the WSL terminal will trigger a search with all the slashes reversed. Might be unrelated but including in case it's a clue to the larger problem. |
Are there any news on this? |
Steps to Reproduce:
Drag a file to the WSL Shell
File path separator is '\' not '/'
Does this issue occur when all extensions are disabled?: Yes
(But in fact I have to enable Remote WSL extensions
The text was updated successfully, but these errors were encountered: