-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Can we get a ${dirSep} variable for use in tasks.json and launch.json? #38381
Comments
Alternatively we could mark whole paths so that we can even do smarter tricks with WSL and git bash. |
What is the current status? Path seperators are unfortunately not available in vscode/git-bash at all,.. Thank you,.. |
Nothing has happened so far. As always a PR is welcome. Regarding my comment here: #38381 (comment) this might be more complicated since this will make the variable resolving shell dependent which is currently not the case. |
I'm looking for this feature too - specifically in launch.json. I don't know the underlying technology you're using, but isn't it the shell's job to resolve the path? With that in mind why not intercept process creation and resolve all slash variants one way or the other using tools like cygpath. Use single quoted arguments to prevent path resolution as needed. |
I have added this variable to the extension Command Variable (v0.6.0) |
Rather surprised how awkward vscode still is to use for Windows users. Installing and using vscode through WSL just to turn \ into / is too much effort IMO, and custom extensions to replace them would force everyone else using the same tasks.json to also have the extension which they didn't need in the first place. Vscode is a great and useful tool but having people world over waste hours fighting it is rather counter productive. If WSL is truly the only way, couldn't the Windows build at the very least hint at WSL if the user is trying to use bash rather than having them discover it through years worth of github issue backlog? |
Ditto @stt this issue, and its closed cohorts have been rendering vscode significantly less usable for three years. Looks like a lot more energy has gone into closing "related" bugs, rather than fixing the problem. |
The name of the variable is |
Steps to Reproduce:
${workspaceFolder}/debug
which works on Linux/macOS but not on Windows because the underlying utility we use (rcedit) rejects the path.What I'd like to be able to do is specify
${workspaceFolder}${dirSep}debug
and not have to worry about the vagaries of OS dir separators.Reproduces without extensions: N/A
The text was updated successfully, but these errors were encountered: