From 50e3a2f40d4fd1be273100eb378f4b05e4f742e0 Mon Sep 17 00:00:00 2001 From: Sean McManus Date: Tue, 7 Dec 2021 13:00:37 -0800 Subject: [PATCH] Proactively handle exclude settings. (#8492) --- Extension/src/LanguageServer/settingsTracker.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Extension/src/LanguageServer/settingsTracker.ts b/Extension/src/LanguageServer/settingsTracker.ts index 46048ee85f..9c716fce61 100644 --- a/Extension/src/LanguageServer/settingsTracker.ts +++ b/Extension/src/LanguageServer/settingsTracker.ts @@ -181,6 +181,10 @@ export class SettingsTracker { || key === "codeAnalysis.clangTidy.path" || key === "codeAnalysis.clangTidy.headerFilter" || key === "codeAnalysis.clangTidy.args" || key === "codeAnalysis.clangTidy.config" || key === "codeAnalysis.clangTidy.fallbackConfig" + + // Note: An existing bug prevents these settings of type "object" from getting processed here, + // so these checks are here just in case that bug gets fixed later on. + || key === "files.exclude" || key === "codeAnalysis.exclude" ) { value = this.areEqual(val, settings.inspect(key)?.defaultValue) ? "" : "..."; // Track whether it's being used, but nothing specific about it. } else {