We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 125b657 commit f7adfc8Copy full SHA for f7adfc8
Extension/src/LanguageServer/settings.ts
@@ -712,8 +712,16 @@ export class CppSettings extends Settings {
712
return true;
713
}
714
715
- if (editorConfigSettings.root?.toLowerCase() === "true") {
716
- return true;
+ if (editorConfigSettings.root !== undefined) {
+ if (typeof editorConfigSettings.root === "boolean") {
717
+ if (editorConfigSettings.root) {
718
+ return true;
719
+ }
720
+ } else if (typeof editorConfigSettings.root === "string") {
721
+ if (editorConfigSettings.root.toLowerCase() === "true") {
722
723
724
725
726
} else {
727
const clangFormatPath1: string = path.join(parentPath, ".clang-format");
0 commit comments