Skip to content

v1.5.0 — LSP: richer completion + missing-';' parse errors

Choose a tag to compare

@gmpassos gmpassos released this 06 Jul 07:35
· 211 commits to master since this release
92b5bfb

Two Language Server improvements.

Completion surfaces in-scope identifiers and survives a failed parse

textDocument/completion now harvests identifiers from the raw token stream in addition to AST symbols + keywords. Because that scan survives a failed parse, completion works while you're mid-edit (where there are no AST symbols) and surfaces local variables and parameters the symbol table omits. Items are de-duplicated and ranked: local-scope symbols → symbols → harvested identifiers → keywords; the partial token under the cursor is skipped.

Parse errors locate a missing ;

ApolloVM's PEG parser reports a generic end of input expected at offset 0 for most structural mistakes. The LSP layer already recovered the real position for bracket imbalances, and now also for a missing statement terminator in ;-required languages (Dart, Java, C#): a balanced-but-unterminated statement is pinned to the end of the offending value with an expected ';' hint, instead of defaulting to the top of the file. Conservative — skips continuation shapes/keywords and annotations, and does not apply to Kotlin/JavaScript/Lua/Python.

Additive and backward-compatible. All 222 LSP + MCP tests pass.

Full changelog: https://github.com/ApolloVM/apollovm_dart/blob/v1.5.0/CHANGELOG.md

🤖 Generated with Claude Code