clang_format_sortIncludes ignores .clang-format setting at startup #5068
Labels
bug
Feature: Code Formatting
fixed
Check the Milestone for the release in which the fix is or will be available.
insiders
Currently only repros with our latest Insiders release.
Language Service
quick fix
regression
A bug that didn't exist in a previous release
Milestone
Type: LanguageService
Describe the bug
The
Format Document
command does not work as exepcted. I can run the command and it does some kind of formatting but the it seems like it isn't using theSortIncludes: true
from the.clang-format
I have in my repository whenclang_format_sortIncludes
is the default value or null.To Reproduce
.clang-format
withSortIncludes: true
and a source file with #includes that requires sorting"C_Cpp.clang_format_path": "/usr/bin/clang-format"
insettings.json
Developer: Reload Window
)Format Document
on the source fileExpected behavior
Includes to be sorted according to the
.clang-format
rules whenC_Cpp.clang_format_sortIncludes
is the default value or null.Screenshots
Additional context
If I do this the sorting starts to work:
settings.json
settings.json
The text was updated successfully, but these errors were encountered: