diff --git a/src/messages/initialize.cc b/src/messages/initialize.cc index 1601db70..ea07006d 100644 --- a/src/messages/initialize.cc +++ b/src/messages/initialize.cc @@ -226,9 +226,10 @@ struct InitializeResult { const char *name = "ccls"; const char *version = CCLS_VERSION; } serverInfo; + const char *offsetEncoding = "utf-32"; }; REFLECT_STRUCT(InitializeResult::ServerInfo, name, version); -REFLECT_STRUCT(InitializeResult, capabilities, serverInfo); +REFLECT_STRUCT(InitializeResult, capabilities, serverInfo, offsetEncoding); struct FileSystemWatcher { std::string globPattern = "**/*";