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
+13
-1
@@ -1,32 +1,44 @@
|
||||
#pragma once
|
||||
|
||||
#include <Void/LanguageServer/Documents/DocumentStore.hpp>
|
||||
#include <vls/Framing.hpp>
|
||||
#include <vls/WorkspaceSession.hpp>
|
||||
|
||||
#include <functional>
|
||||
#include <iosfwd>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
namespace vls {
|
||||
namespace semantic {
|
||||
class EditorDiagnostics;
|
||||
}
|
||||
|
||||
inline constexpr std::string_view server_version = "0.1.0";
|
||||
|
||||
struct DispatchResult {
|
||||
std::optional<std::string> response;
|
||||
std::optional<int> exit_code;
|
||||
std::string diagnostic{};
|
||||
};
|
||||
|
||||
class Server {
|
||||
public:
|
||||
explicit Server(WorkspaceLaunch launch = {}, std::function<bool(std::string)> send = {});
|
||||
~Server();
|
||||
[[nodiscard]] DispatchResult handle(std::string_view body);
|
||||
|
||||
private:
|
||||
enum class State { awaiting_initialize, running, shutdown };
|
||||
State state_{State::awaiting_initialize};
|
||||
Void::LanguageServer::Documents::DocumentStore documents_;
|
||||
WorkspaceSession workspace_;
|
||||
std::unique_ptr<semantic::EditorDiagnostics> diagnostics_;
|
||||
};
|
||||
|
||||
// Thin transport loop shared by the executable and stream-failure unit tests.
|
||||
[[nodiscard]] int run_stdio(std::istream &input, std::ostream &output, std::ostream &diagnostics,
|
||||
FrameLimits limits = {});
|
||||
FrameLimits limits = {}, WorkspaceLaunch launch = {});
|
||||
|
||||
} // namespace vls
|
||||
Reference in new issue
Block a user