Consume a compiler-agnostic completion index

Under D-032, completion can now merge candidates from a documented,
versioned index file produced by any external tool. The bounded core
parses and selects the innermost covering scope, the server puts its
items ahead of index-backed ones and takes isIncomplete from the
scope's complete flag, and registered feature tests cover parsing,
selection and bounds. A real stdio session returned the provided
items first with isIncomplete false inside the scope and true outside.
This commit is contained in:
faumaray committed 2026-12-06 02:10:16 +03:00
1 parent 236c3c5718
commit 4a029152e9
13 files changed
+336 -11

No files matched your search

+2
View File
@@ -3,6 +3,7 @@
#include <Void/LanguageServer/Documents/DocumentStore.hpp>
#include <vls/Framing.hpp>
#include <vls/WorkspaceSession.hpp>
#include <vls/features/CompletionSource.hpp>
#include <vls/reflection/Provenance.hpp>
#include <functional>
@@ -37,6 +38,7 @@ class Server {
WorkspaceSession workspace_;
std::unique_ptr<semantic::EditorDiagnostics> diagnostics_;
std::shared_ptr<const reflection::Snapshot> reflection_;
std::vector<features::completion_source::Scope> completion_scopes_;
};
// Thin transport loop shared by the executable and stream-failure unit tests.