-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Milestone
Description
Type: LanguageService
- OS and Version: Windows 10 1803
- VS Code Version: 1.23.1
- C/C++ Extension Version: 0.17.4
- The
.clang-format
file will not be used if the project resides on an UNC-style network share, unless the fallback style is forced to "none". - This does not occur on drive-letter mounted network shares or local drives.
To Reproduce
Steps to reproduce the behavior:
- Prepare a directory with a
.clang-format
file and some source on a network share like my\\10.0.1.15\zao\code\gggtools
. - Open the folder with VS Code.
- Open a C++ source file.
- Hit the formatting shortcut.
- Note that it doesn't use the
.clang-format
file, instead using the fallback style. - Configure
"C_Cpp.clang_format_fallbackStyle": "none"
in settings. - Format again.
- Note how the
.clang-format
file is used as intended.
Expected behavior
I expect the formatter to always find and use the .clang-format
file in the tree regardless of fallback style.
sketch34