Skip to content

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 09:42
· 52 commits to main since this release

Added

  • Run angel_lsp --mcp [--mcp-root <dir>] to serve an MCP bridge over stdio. It exposes open_document, apply_edit, replace_document, diagnostics, hover, completion, signature_help, definition, and document_symbols through an in-process language server.
  • Added a differential parity corpus in server/tests/parity/differential. DifferentialCorpusTest replays it through the MCP bridge, and server/scripts/differential-validate.py checks each case against the AngelScript compiler oracle before comparing server results.
  • Added angelscript_oracle --no-mixin-probe to skip synthetic mixin subclasses. Oracle JSON marks diagnostics from those subclasses with probeOnly.
  • Diagnostic disable pragmas accept multiple codes and an explanation, as in // disable W103, W116 -- generated declarations (#5).
  • Added &in and &out quick fixes for E144 on primitive &inout parameters (#10).
  • Added angelscript.diagnostics.ignoredUnusedPaths to suppress unused declaration warnings (W116–W120) in files matching workspace-relative globs (#11).
  • Added the opt-in angelscript.diagnostics.reportMissingClassAccessor setting. It reports W123 when a method accesses a field or property of the enclosing class without this. (#13).
  • Completion suggests qualifiers such as explicit, const, final, and override after constructor and method signatures where they apply.
  • Added support for AngelScript's variable type token (?), including qualified forms such as ?&in in predefined signatures.
  • Report unresolved default argument expressions at call sites that rely on them (E262).
  • Report handles applied to host value types listed in noHandleTypes (E261). Configure the list in angelscript.rules.json or via angelscript.engine.noHandleTypes.
  • Pinpoint missing tokens in syntax diagnostics, including a ternary's :, a control header's closing ), and a missing catch after try.
  • Added OperatorSiteIndex to track operator uses for reference counts and conversion checks.

Changed

  • Split VS Code tests into a default unit run (npm test) and an opt-in perf run (npm run test:perf). The Mocha timeout now accommodates the first settings write after startup.
  • Moved the 300 MB peak-memory stress test into its own CTest entry (angel_lsp_stress_memory) so it measures its own process peak on Linux and macOS.
  • Reorganized analysis and LSP code into domain sublayers. Features consume indexed syntax facts through shared analysis services.
  • Consolidated duplicate structures and helpers across indexing, resolution, and feature handlers.
  • Recorded structural changes in the refactor ledger and strengthened checks for layer boundaries, AST traversal, and ledger coverage.

Fixed

  • Instance completion now finds class members when a namespace shares the class name (#12).
  • Completion filters globals from workspace files outside the document's include scope after X::, in base-class lists, and at the top level. A leading :: restricts suggestions to global symbols.
  • Member access on locals of types declared in the enclosing namespace now reports unknown members and private access.
  • Report an undefined identifier for A::missing() when namespace A has no such function.
  • Fixed class reference counts in CodeLens and kept the counters on the class declaration line after edits. The server sends workspace/codeLens/refresh after committed analysis updates the index when supported and answers stale requests with ContentModified (#16).
  • CodeLens counts uses of typedefs, funcdefs, and resolved operator overloads.
  • Accept ternary expressions with two void branches.
  • Allow initializer-list elements to use non-explicit opAssign overloads, including numeric elements in an array<string> initializer.
  • Recognize opConv(?&out) and opCast(?&out) as conversions to the requested type.
  • Treat an out argument passed by a call in a variable initializer as assigned after the call.
  • Allow cast<T>(expr) to bind to a mutable object reference parameter where AngelScript permits it.
  • Resolve namespace-relative method parameter types in their declaring namespace, including when a class and namespace share a name.
  • Type-check indexed expressions in variable initializers. Initializing an int with an array<Item@> element reports as-err-no-implicit-conversion.
  • Accept == and != comparisons between a handle and null.
  • Fix definition, hover, and signature help for inherited members and accessor calls.
  • Clear stale diagnostics when files outside configured modules are closed and resolve sibling includes during initial module scans.
  • The MCP bridge retries diagnostics only on ServerCancelled, rejects requests that require an open document when it is unopened, sorts completion by sortText and reports truncated, reads from disk when open_document receives null text, and returns a supported protocol version during initialization.

Removed

  • Removed built-in engine profiles, including embedded profile stubs and the --engine-profile and --profile flags. The engineProfile setting is ignored. Use on-disk .as.predefined stubs for engine types.
  • Removed synthetic angelscript-virtual:// mixin documents, the angelscript.viewMixinExpansion, angelscript.peekMixinInline, and angelscript.openPhysicalSource commands, the angelscript.enableVirtualMixinDocuments and angelscript.codeLens.showMixinExpansion settings, the --enable-virtual-mixin-documents and --codelens-mixin-expansion flags, and the angelscript/virtualDocumentContent request. Mixin members still resolve in their host class.

Performance

  • Reduced IndexedSyntaxNode to 24 bytes, trimmed excess capacity after indexing, and compacted frequently used analysis structs and indexed facts. Removed ParameterInformation::rawText.
  • Indexed enclosing class spans, cached repeated semantic token requests, and reduced work in semantic token generation, lvalue analysis, and inlay hints.
  • Reused exact syntax revisions for pull diagnostics on the owning thread and prioritized open documents within the syntax cache budget.
  • Trimmed free heap memory after analysis bursts on Windows and glibc systems and limited the number of glibc heap arenas.
  • Added process memory telemetry on macOS.

Full Changelog: v1.1.7...v1.2.0