Format document (clang-format) does not work if fallbackStyle="" is defined in settings.json #10994
Labels
bug
Feature: Code Formatting
fixed
Check the Milestone for the release in which the fix is or will be available.
Language Service
quick fix
Milestone
Type: Bug
Reproduce the issue with the UI settings.
1 - I modified the C_Cpp.clang_format_fallbackStyle setting using the UI to 'LLVM'.
2 - The modified it to ''
VSCode throws a 'formatting failed error' when settings.json looks like this
{
"C_Cpp.clang_format_fallbackStyle": "",
"files.associations": {
"*.tcc": "cpp"
}
}
However, deleting the line fixes it, and formatting is done without errors (since I have the 'file' value in format style and a valid .clang-format file)
{
"files.associations": {
"*.tcc": "cpp"
}
}
Might this be considered an inconsistent behavior?
The text was updated successfully, but these errors were encountered: