Completion And Editor Metadata
Vela is designed so editor support can share the same semantic and reflection metadata used by the compiler and runtime. A full LSP is not part of the MVP, but the architecture keeps the required data available.
Metadata Sources
Section titled “Metadata Sources”Editor features use a combination of parser spans, module graph bindings,
TypeFact analysis, TypeRegistry metadata, and reflection descriptors.
completion -> SymbolTable + TypeFact + TypeRegistryhover -> TypeFact + docs + effects + declaration origingo to definition -> BindingMap + declaration origindiagnostics -> parser + semantic model + registrysemantic tokens -> tokens + resolved symbolsCompletion Quality
Section titled “Completion Quality”Known host refs, known script records, type hints, and narrowed enum variants
should produce precise completions. Unknown dynamic values degrade to Any
rather than blocking bytecode generation.
Source Origins
Section titled “Source Origins”Script declarations can carry source spans. Host-generated schemas may carry docs and optional origins, but they do not need fake source locations.
Runtime Boundary
Section titled “Runtime Boundary”Editor metadata is descriptive. It does not grant permission to mutate runtime type structure, bypass reflection policy, or monkey patch registered schemas.