Implement the VLS roadmap on the native VBS build
Native VBS and CMake builds of the server and every registered suite: protocol and document sync, VBS/compdb providers, stock GCC diagnostics (including in-process default profile preparation), the stock occurrence observer and hover/definition, the bounded Scheduler, C++ module graph, scan and artifact cache with real CMI production, the context-aware symbol index with schema-2 snapshot migration, navigation and guarded rename, reflection provenance with splice-origin extraction, index-backed completion and signature help, live GCC worker control with a registered DAP suite, and the Neovim and VS Code clients. VoidLibrary follows main. The private GCC 16.2.0 frontend is reproduced from the versioned patches and verified stepping reflection/template code with projected values 17/34 and 41/82.
This commit is contained in:
1 parent
ca04975d54
commit
da8003f6d4
310 files changed
+47552
-480
No files matched your search
+16
-2
@@ -59,11 +59,25 @@ inline void expect_error(vls::Server &server, std::string_view request, std::int
|
||||
Void::Testing::expect_eq(error_code(response(server, request)), code);
|
||||
}
|
||||
|
||||
inline void expect_sync_capabilities(const vls::Json &result,
|
||||
std::string_view encoding = "utf-16") {
|
||||
const auto &capabilities = field(result, "capabilities");
|
||||
Void::Testing::expect_eq(std::get<vls::Json::Object>(capabilities.value).size(),
|
||||
std::size_t{3});
|
||||
const auto &folders = field(field(capabilities, "workspace"), "workspaceFolders");
|
||||
Void::Testing::expect(std::get<bool>(field(folders, "supported").value));
|
||||
Void::Testing::expect(std::get<bool>(field(folders, "changeNotifications").value));
|
||||
Void::Testing::expect_eq(std::get<std::string>(field(capabilities, "positionEncoding").value),
|
||||
std::string{encoding});
|
||||
const auto &sync = field(capabilities, "textDocumentSync");
|
||||
Void::Testing::expect(std::get<bool>(field(sync, "openClose").value));
|
||||
Void::Testing::expect_eq(std::get<std::int64_t>(field(sync, "change").value), std::int64_t{2});
|
||||
}
|
||||
|
||||
inline void initialize(vls::Server &server) {
|
||||
const auto result =
|
||||
response(server, R"({"jsonrpc":"2.0","id":1,"method":"initialize","params":{}})");
|
||||
Void::Testing::expect(
|
||||
std::get<vls::Json::Object>(field(field(result, "result"), "capabilities").value).empty());
|
||||
expect_sync_capabilities(field(result, "result"));
|
||||
}
|
||||
|
||||
inline constexpr std::string_view initialize_request =
|
||||
|
||||
Reference in new issue
Block a user