-
Notifications
You must be signed in to change notification settings - Fork 1.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
Unable to specify clang-format file:${workspaceFolder} for multi-root workspace #10752
Comments
@jlj-ee Setting |
@sean-mcmanus Thanks for the info! |
Yeah, the clang_format_style will be fixed for 1.15.2 (pre-release). |
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
Setting clang-format via file:${workspaceFolder} works well per #9786.
However, using the standard multi-root workspace syntax
file:${workspaceFolder:someOtherFolder}
causes the path to no longer be expanded, e.g.ms-vscode.cpptools-1.14.5-win32-x64/bin/../LLVM/bin/clang-format.exe -style=file:${workspaceFolder:common}/.clang-format
Per the multi-root workspace docs
While I can work around this by using the actual relative/absolute path instead of ${workspaceFolder:someOtherFolder}, the multi-root scoping syntax works fine in other places in this extension, e.g. in includePath/browsePath, so it seemed reasonable to expect the syntax to work for specifying clang-format/clang-tidy files as well.
Steps to reproduce:
"C_Cpp.clang_format_style"
to e.g.file:${workspaceFolder:common}/.clang-format
Expected behavior:
Path would be expanded to the correct multi-root workspace folder so that formatting completes successfully.
Configuration and Logs
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: