ClangCodeModel: Adapt to new "inactiveRegions" notification in clangd

See https://reviews.llvm.org/D143974.

Change-Id: Iff6cc39f7c567feee1953fde1ca96a9aefec75d4
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2023-06-07 15:45:56 +02:00
parent 114c92acb7
commit f0a1591035
7 changed files with 101 additions and 11 deletions

View File

@@ -169,6 +169,11 @@ public:
Utils::FilePath serverUriToHostPath(const LanguageServerProtocol::DocumentUri &uri) const;
LanguageServerProtocol::DocumentUri hostPathToServerUri(const Utils::FilePath &path) const;
// custom methods
using CustomMethodHandler = std::function<void(
const LanguageServerProtocol::JsonRpcMessage &message)>;
void registerCustomMethod(const QString &method, const CustomMethodHandler &handler);
// logging
enum class LogTarget { Console, Ui };
void setLogTarget(LogTarget target);