initialize: Add offsetEncoding to InitializeResult

This commit is contained in:
Fangrui Song 2022-01-11 19:25:21 -08:00
parent 8422f0a522
commit c7596e3712

View File

@ -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 = "**/*";