-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add support for ${workspaceFolder} variable #1392
Comments
We don't support the variable |
Trying right now. One minute. |
Okay yes it does (but you might want to make sure I'm not doing something dumb still that makes it seem like it's working but isn't really :P). Thanks. It'll be nice if it matches the new recommendations from the multi-root feature additions. Secondarily, regarding the multi-root feature additions; it would be nice to have an environment variable that refers to the multi-root workspace root. Meaning, I can add two folders from anywhere into my workspace but the environment variable can be used to make those folders look like they're peers removing the need for messy absolute or relative paths. PS. I'll leave this open if you want to use this item to track the addition of the workspaceFolder variable and/or the above feature request. |
Okay, I think I understand what you're describing, something like "${realWorkspaceRoot}/folder1", "${realWorkspaceRoot}/folder2". I wonder if VS Code itself plans to add that variable for tasks.json. |
I certainly hope so :). I'd use it for include paths most of all. |
Quick question on this one, do I need to replace ${workspaceRoot} with ${workspaceFolder} now, or are both supported? |
@Zooce Both are supported and should behave identically. |
${workspaceFolder} was added with 0.16.1, but we're still tracking ${workspaceFolder:folderName} with #1774 . |
Repro project: test.zip
Steps to Reproduce:
Reproduces without extensions: Yes/No
The text was updated successfully, but these errors were encountered: