Repository navigation
v1.2.0
Added
- Run
angel_lsp --mcp [--mcp-root <dir>]to serve an MCP bridge over stdio. It exposesopen_document,apply_edit,replace_document,diagnostics,hover,completion,signature_help,definition, anddocument_symbolsthrough an in-process language server. - Added a differential parity corpus in
server/tests/parity/differential.DifferentialCorpusTestreplays it through the MCP bridge, andserver/scripts/differential-validate.pychecks each case against the AngelScript compiler oracle before comparing server results. - Added
angelscript_oracle --no-mixin-probeto skip synthetic mixin subclasses. Oracle JSON marks diagnostics from those subclasses withprobeOnly. - Diagnostic disable pragmas accept multiple codes and an explanation, as in
// disable W103, W116 -- generated declarations(#5). - Added
&inand&outquick fixes for E144 on primitive&inoutparameters (#10). - Added
angelscript.diagnostics.ignoredUnusedPathsto suppress unused declaration warnings (W116–W120) in files matching workspace-relative globs (#11). - Added the opt-in
angelscript.diagnostics.reportMissingClassAccessorsetting. It reports W123 when a method accesses a field or property of the enclosing class withoutthis.(#13). - Completion suggests qualifiers such as
explicit,const,final, andoverrideafter constructor and method signatures where they apply. - Added support for AngelScript's variable type token (
?), including qualified forms such as?&inin 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 inangelscript.rules.jsonor viaangelscript.engine.noHandleTypes. - Pinpoint missing tokens in syntax diagnostics, including a ternary's
:, a control header's closing), and a missingcatchaftertry. - Added
OperatorSiteIndexto track operator uses for reference counts and conversion checks.
Changed
- Split VS Code tests into a default
unitrun (npm test) and an opt-inperfrun (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 namespaceAhas 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/refreshafter committed analysis updates the index when supported and answers stale requests withContentModified(#16). - CodeLens counts uses of typedefs, funcdefs, and resolved operator overloads.
- Accept ternary expressions with two
voidbranches. - Allow initializer-list elements to use non-explicit
opAssignoverloads, including numeric elements in anarray<string>initializer. - Recognize
opConv(?&out)andopCast(?&out)as conversions to the requested type. - Treat an
outargument 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
intwith anarray<Item@>element reportsas-err-no-implicit-conversion. - Accept
==and!=comparisons between a handle andnull. - 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 bysortTextand reportstruncated, reads from disk whenopen_documentreceives null text, and returns a supported protocol version during initialization.
Removed
- Removed built-in engine profiles, including embedded profile stubs and the
--engine-profileand--profileflags. TheengineProfilesetting is ignored. Use on-disk.as.predefinedstubs for engine types. - Removed synthetic
angelscript-virtual://mixin documents, theangelscript.viewMixinExpansion,angelscript.peekMixinInline, andangelscript.openPhysicalSourcecommands, theangelscript.enableVirtualMixinDocumentsandangelscript.codeLens.showMixinExpansionsettings, the--enable-virtual-mixin-documentsand--codelens-mixin-expansionflags, and theangelscript/virtualDocumentContentrequest. Mixin members still resolve in their host class.
Performance
- Reduced
IndexedSyntaxNodeto 24 bytes, trimmed excess capacity after indexing, and compacted frequently used analysis structs and indexed facts. RemovedParameterInformation::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