Skip to content

Format document (clang-format) does not work if fallbackStyle="" is defined in settings.json #10994

@illegal-instruction

Description

@illegal-instruction

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions