-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
[Terminal] Windows: drag and droping a tab from the workspace returns an invalid path #29926
Comments
The path should also be compatible with other shells, such as bash under WSL or Git Bash. This would require another setting though, unless it is assumed the executable names are never changed by people. |
Question is, how do you know which environment you're running on? I'm not sure this can be properly guessed. The |
Good point. I'm not sure either. The only way may be to analyze prompt strings / prefixes, unless there is a way to get the most nested process running in the shell. |
In the meantime maybe it could be fixed so that it works in at least one environment (I would suggest cmd.exe), because right now, the path's that's returned ( |
It turns out there is a way to query child processes of the shell, and I created a PR (#30070) that does this. The querying does add some latency though, so keeping the path always Windows-formatted could be a better way to go. |
Nice work @rianadon! I'd vote for simply formatting paths as Windows by default, and have an option to use your method. |
@rianadon it looks like you've stumbled onto something I've been wanting for a while in |
@Tyriar It's supposed to be fixed according to the VSCode 1.15 release notes but it still returns an invalid path on Windows 10 with cmd.exe: (Creators Update)
|
I'll keep it open until other shell paths are handled correctly |
Steps to Reproduce:
What happens?
A unix-like path is copied, like:
/e:/docs/Dev/test.js
. This path is invalid and cannot be used into the terminal without replacing the slashes with backslashes and removing the first slash.What should happen?
This should copy a Windows path:
e:\docs\Dev\test.js
The text was updated successfully, but these errors were encountered: