VOID Tooling

Compiler-owned intelligence.

voidc is the source of truth for both builds and editor features. The language server asks the compiler for types, symbols, calls, and diagnostics, so unsaved editor state is analyzed with the same rules as real source.

Tooling block complete

The editor-facing stack lives inside voidc.

The language server does not duplicate parsing, type checking, overload resolution, access rules, or project discovery. It asks the compiler the same questions normal compilation already knows how to answer.

Structured CLI diagnostics

Implemented Compiler diagnostics retain severity, stable code, source snapshot/span, notes, help, and related locations, then render readable source excerpts with precise markers.

voidc check

Implemented Full front-end validation without C generation, native compilation, or build outputs.

Semantic query sessions

Implemented Persistent analyzed projects answer symbol, type, definition, member, callable, completion, reference, and symbol queries.

Debug/source mapping

Implemented Generated C #line mappings let native debug information point back to original .void files and lines.

voidc lsp lifecycle & documents

Implemented Framed JSON-RPC, initialize/shutdown lifecycle, full-document synchronization, versioned in-memory text, project discovery, and UTF-16/LSP position conversion.

Live diagnostics

Implemented Lexer, parser, and semantic diagnostics publish directly from unsaved buffers and clear as source is fixed or closed. Full transport of every rich CLI note/help/related-location context through LSP remains a later step.

Machine-readable diagnostics

Implemented --diagnostics=json emits structured stderr records from the same compiler diagnostics used for terminal text, including codes, severity, spans, notes, help, related locations, and truncation state.

Hover & signature help

Implemented Compiler bindings provide typed hover labels, overload sets, constructors, delegates, optional/params signatures, named-argument mapping, and active-parameter selection.

Semantic completion

Implemented Instance/static/inherited members, accessibility filtering, enums, locals, parameters, project types, namespaces, and LSP completion kinds come from real semantic state.

Navigation, references & symbols

Implemented Cross-file definition lookup, declaration-identity references, document symbols, and workspace symbol filtering use compiler-owned declarations and bindings.

Multi-file editor stabilization

Implemented All open files in a project are analyzed as one in-memory snapshot. Dependent diagnostics refresh across unsaved edits, temporarily broken source does not poison later requests, and closing a file falls back to disk.

Compiler-side language server
./bin/voidc lsp

// Compiler-backed features:
publishDiagnostics
hover
signatureHelp
completion
definition
references
documentSymbol
workspace/symbol

Why this matters

Tools can consume compiler facts instead of scraping compiler text.

Terminal rendering, JSON diagnostics, source-only checking, and editor features all begin with compiler-owned source and semantic information. An editor extension can remain a thin client around voidc lsp, while command-line tools can consume structured JSON without reverse-engineering human-readable messages.