From 1723af02068a28ca85e49758f8dacc4c2860c5d0 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 25 Sep 2023 15:33:14 +0200 Subject: [PATCH] ClangCodeModel: Enable clangd hidden features when server logging is on Potentially useful for debugging. Change-Id: Iada7f2809d0f42bd5445ac6f9a8161a03ffd9bb5 Reviewed-by: Christian Kandeler --- src/plugins/clangcodemodel/clangdclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/clangcodemodel/clangdclient.cpp b/src/plugins/clangcodemodel/clangdclient.cpp index c2529a94e1a..5631f9fbc3c 100644 --- a/src/plugins/clangcodemodel/clangdclient.cpp +++ b/src/plugins/clangcodemodel/clangdclient.cpp @@ -215,7 +215,7 @@ static BaseClientInterface *clientInterface(Project *project, const Utils::FileP if (!jsonDbDir.isEmpty()) cmd.addArg("--compile-commands-dir=" + clangdExePath.withNewMappedPath(jsonDbDir).path()); if (clangdLogServer().isDebugEnabled()) - cmd.addArgs({"--log=verbose", "--pretty"}); + cmd.addArgs({"--log=verbose", "--pretty", "--hidden-features=1"}); cmd.addArg("--use-dirty-headers"); const auto interface = new StdIOClientInterface; interface->setCommandLine(cmd);