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
+10
-11
@@ -1,11 +1,10 @@
|
||||
#include "TestSupport.hpp"
|
||||
|
||||
Void::Testing::Test complete_lifecycle_advertises_empty_capabilities() {
|
||||
VOID_TEST(LifecycleTests, complete_lifecycle_advertises_document_sync) {
|
||||
vls::Server server;
|
||||
const auto initialized = test::response(server, test::initialize_request);
|
||||
const auto &result = test::field(initialized, "result");
|
||||
Void::Testing::expect(
|
||||
std::get<vls::Json::Object>(test::field(result, "capabilities").value).empty());
|
||||
test::expect_sync_capabilities(result);
|
||||
const auto &info = test::field(result, "serverInfo");
|
||||
Void::Testing::expect_eq(std::get<std::string>(test::field(info, "name").value),
|
||||
std::string{"VoidLanguageServer"});
|
||||
@@ -21,7 +20,7 @@ Void::Testing::Test complete_lifecycle_advertises_empty_capabilities() {
|
||||
Void::Testing::expect_eq(*exited.exit_code, 0);
|
||||
}
|
||||
|
||||
Void::Testing::Test requests_before_initialize_and_premature_exit() {
|
||||
VOID_TEST(LifecycleTests, requests_before_initialize_and_premature_exit) {
|
||||
vls::Server server;
|
||||
test::expect_error(server, test::shutdown, -32002);
|
||||
test::expect_error(server, R"({"jsonrpc":"2.0","id":3,"method":"unknown"})", -32002);
|
||||
@@ -31,7 +30,7 @@ Void::Testing::Test requests_before_initialize_and_premature_exit() {
|
||||
Void::Testing::expect_eq(*exited.exit_code, 1);
|
||||
}
|
||||
|
||||
Void::Testing::Test initialize_requires_object_and_only_runs_once() {
|
||||
VOID_TEST(LifecycleTests, initialize_requires_object_and_only_runs_once) {
|
||||
vls::Server server;
|
||||
for (const auto params : {"", ",\"params\":[]", ",\"params\":null", ",\"params\":true"})
|
||||
test::expect_error(
|
||||
@@ -43,7 +42,7 @@ Void::Testing::Test initialize_requires_object_and_only_runs_once() {
|
||||
test::expect_error(server, test::initialize_request, -32600);
|
||||
}
|
||||
|
||||
Void::Testing::Test unknown_methods_notifications_and_exit_request() {
|
||||
VOID_TEST(LifecycleTests, unknown_methods_notifications_and_exit_request) {
|
||||
vls::Server server;
|
||||
test::initialize(server);
|
||||
test::expect_error(
|
||||
@@ -56,7 +55,7 @@ Void::Testing::Test unknown_methods_notifications_and_exit_request() {
|
||||
Void::Testing::expect_eq(*server.handle(test::exit).exit_code, 1);
|
||||
}
|
||||
|
||||
Void::Testing::Test post_shutdown_precedes_all_request_methods() {
|
||||
VOID_TEST(LifecycleTests, post_shutdown_precedes_all_request_methods) {
|
||||
vls::Server server;
|
||||
test::initialize(server);
|
||||
static_cast<void>(test::response(server, test::shutdown));
|
||||
@@ -66,7 +65,7 @@ Void::Testing::Test post_shutdown_precedes_all_request_methods() {
|
||||
Void::Testing::expect_eq(*server.handle(test::exit).exit_code, 0);
|
||||
}
|
||||
|
||||
Void::Testing::Test malformed_envelopes_and_ids() {
|
||||
VOID_TEST(LifecycleTests, malformed_envelopes_and_ids) {
|
||||
vls::Server server;
|
||||
for (const auto text :
|
||||
{"[]", "[{}]", "null", "true", "{}", R"({"jsonrpc":"1.0","id":1,"method":"initialize"})",
|
||||
@@ -86,7 +85,7 @@ Void::Testing::Test malformed_envelopes_and_ids() {
|
||||
std::string{"\"\xD0\x96\n"});
|
||||
}
|
||||
|
||||
Void::Testing::Test unmatched_responses_do_not_reply_or_change_lifecycle() {
|
||||
VOID_TEST(LifecycleTests, unmatched_responses_do_not_reply_or_change_lifecycle) {
|
||||
vls::Server server;
|
||||
const auto ignore_responses = [&] {
|
||||
for (const auto text :
|
||||
@@ -108,7 +107,7 @@ Void::Testing::Test unmatched_responses_do_not_reply_or_change_lifecycle() {
|
||||
Void::Testing::expect_eq(*server.handle(test::exit).exit_code, 0);
|
||||
}
|
||||
|
||||
Void::Testing::Test parse_errors_use_null_id_and_do_not_mutate_state() {
|
||||
VOID_TEST(LifecycleTests, parse_errors_use_null_id_and_do_not_mutate_state) {
|
||||
vls::Server server;
|
||||
const auto malformed = test::response(server, "{bad");
|
||||
Void::Testing::expect_eq(test::error_code(malformed), std::int64_t{-32700});
|
||||
@@ -119,7 +118,7 @@ Void::Testing::Test parse_errors_use_null_id_and_do_not_mutate_state() {
|
||||
static_cast<void>(test::response(server, test::shutdown));
|
||||
}
|
||||
|
||||
Void::Testing::Test eof_never_reports_success_without_exit() {
|
||||
VOID_TEST(LifecycleTests, eof_never_reports_success_without_exit) {
|
||||
for (const auto wire : {std::string{}, test::frame(test::initialize_request),
|
||||
test::frame(test::initialize_request) + test::frame(test::shutdown)}) {
|
||||
std::istringstream input{wire};
|
||||
|
||||
Reference in new issue
Block a user