Skip to content

Releases

v1.2.6

Choose a tag to compare

@github-actions github-actions released this 28 Nov 06:31

Fixed

  • The extension package no longer fails vsce package because the client README embedded SVG images. The file and predefined icons in the README now use PNG copies (client/images/as-file-icon.png, client/images/as-predefined-icon.png); the SVG icons stay in client/assets/ for the icon theme.

Changed

  • Moved every repository link, the grammar pin source and the submodule URLs to the angelscript-tools organization. The license now lists both authors.
  • Restored the hover caption and the icon table in the READMEs.

Full Changelog: v1.2.5...v1.2.6

v1.2.5

Choose a tag to compare

@github-actions github-actions released this 26 Nov 21:34

Fixed

  • A predefined stub that spells template parameters with the class keyword, such as class array<class T> and class map<class K, class V>, no longer reports E260 ("Template 'array' expects 2 sub type(s)"). The engine accepts that spelling in RegisterObjectType, and angelscript --dump-predefined writes it. The grammar now accepts the optional class, and the symbol collector counts only the param fields.

Changed

  • Restructured the root, client and Spanish READMEs and pinned tree-sitter-angelscript to the class template parameter fix (2ef4464).

Full Changelog: v1.2.4...v1.2.5

v1.2.4

Choose a tag to compare

@github-actions github-actions released this 25 Nov 06:20

Added

  • Added an optional engine section to angelscript.rules.json with version, source (official or custom) and name. The default is AngelScript 2.39.0, the latest release and the one fully supported. The server logs every engineProperties key that is newer than the declared version, and a custom engine keeps engineProperties as the source of truth.
  • The MCP engine_rules tool returns the engine profile with its warnings, and workspace_info returns warnings and nextSteps when the rules file, the predefined stub or the module entry point is missing, each with the question to ask the user.

Changed

  • The debugger now lives in angelscript-dap, with the example project and the AngelScript CLI. The README and the guides point to them, the debugger demo recorders moved with it, and debugger reports go to the angelscript-dap issues.
  • Added CONTRIBUTING.md and docs/CONTRIBUTING.es.md. Markdown other than the README, the changelog, the contributing guide and AGENTS.md lives in docs/, and Python scripts live in scripts/ folders.

Full Changelog: v1.2.3...v1.2.4

v1.2.3

Choose a tag to compare

@github-actions github-actions released this 24 Nov 23:51

Added

  • Added the AngelScript: Report Issue command, also offered as Report Issue in every server error message. It opens the VS Code issue reporter with the extension, VS Code and OS versions, the tail of the server log and the code near the cursor already filled in. Workspace paths, the home directory, the user name and email addresses are replaced, and the code sample is rewritten with generic names (T1, f2, v3), empty strings and no comments, so the case can be reproduced without sharing private code. Editors without the reporter open the pre-filled GitHub form instead.
  • Added "Other Clients", "Issues and Contributions" and "Credits" sections to the README, and THIRD_PARTY_NOTICES.md with the license of every project the server builds on. The notices ship inside the extension.
  • The release workflow publishes the extension to Open VSX when the OVSX_PAT secret is set.
  • The MCP bridge now exposes workspace_info, engine_rules, module_graph, references, workspace_symbols and predefined_lookup, so an agent can learn the module entry point, the host engine rules and the predefined API before it edits. The server answers the first four through the new angelscript/workspaceInfo, angelscript/engineRules, angelscript/moduleGraph and angelscript/predefinedLookup requests, which wait for the initial workspace scan.
  • Added the angelscript.runner.path setting so a launch configuration with program can run scripts through an external AngelScript runner found on your PATH.
  • Added an opt-in end-to-end test against angelscript-cli

Changed

  • Runner discovery also finds angelscript and asc on PATH and continues to support angelscript-cli.
  • Reorganized the README feature gallery into a single column with larger demos, moved the feature status table into a collapsible section, clarified that the extension checks code but does not run it, and added project folder trees to the workspace guide.
  • Added captions to the README feature galleries, grouped the LSP feature table, and made the workspace guide examples engine-neutral.

Full Changelog: v1.2.2...v1.2.3

v1.2.2

Choose a tag to compare

@github-actions github-actions released this 24 Nov 09:15

Changed

  • Updated the Debugger sections of the READMEs and guides to point to the debugger example project and added captions to demo images.
  • Removed the engine hover demo.

Full Changelog: v1.2.1...v1.2.2

v1.2.1

Choose a tag to compare

@github-actions github-actions released this 24 Nov 08:24

Added

  • Added the "Add const to variable" quick action for initialized local variables that are never reassigned.

Changed

  • Rewrote the READMEs, workspace guides, and engine rules guide around animated demos. Added a demo of hover documentation for engine functions declared in an .as.predefined stub and linked to the debugger example project.

Fixed

  • Completion stops suggesting a function's parameters between its closing parenthesis and opening brace, and after its closing brace.
  • The "Add const" quick fix no longer targets the method when the cursor is on a local variable inside the method body.
  • Removed elapsed-time limits from tests that could fail on slow Windows x86 CI runners.

Full Changelog: v1.2.0...v1.2.1

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 09:42

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

v1.1.7

Choose a tag to compare

@Gaftherman Gaftherman released this 31 Oct 22:40

Official 1.1.7 Release: Empty-Parentheses Variables, Workspace Module Isolation & UI Status, GitHub Issues (#3, #4, #7, #8, #9) & Unified Feature Parity Harness

  • Empty-Parentheses Variable Declarations (Type var();) (SymbolCollector.cpp, LocalScopeCollector.cpp, SemanticTokensHandler.cpp):
    • Supported empty-parentheses variable declarations initialized via default constructor across class members (class Logger { ASErrorLogger error(); }), global variables, namespace variables, and local variables in function bodies (void main() { A a(); }).
    • Disambiguated gs.symFunctionDeclaration nodes without bodies in AST traversal, registering them as SymbolType::Variable with VariableSignature rather than phantom function prototypes.
    • Corrected semantic tokens classification to highlight empty-parentheses declarations as variables/properties instead of functions.
  • Workspace Module Isolation & Interactive Module UI (ServerAnalysis.cpp, ServerModules.cpp, WorkspaceHandlers.cpp, extension.ts):
    • When angelscript.modules is configured, semantic analysis and diagnostic publication are strictly restricted to scripts within the active module's #include closure.
    • Automatically suppresses diagnostics for scripts outside the active module partition and withdraws stale diagnostics upon configuration updates or active module switches via WithdrawStaleModuleDiagnostics.
    • Added an interactive VS Code Status Bar Item and LanguageStatusItem showing the active module with QuickPick menu support for switching active modules, selecting "All Modules / Workspace", or triggering a manual workspace rescan.
    • 100% synchronized bilingual localization strings across English (bundle.l10n.json) and Spanish (bundle.l10n.es.json).
  • GitHub Issue #3 Resolution: Private & Protected Member Autocompletion Filtering (CompletionHandler.cpp):
    • Enforced strict member visibility checking in IsMemberAccessibleForCompletion: private members are suggested only when the cursor resides within the exact defining class (or applied mixin).
    • Protected members are filtered out for external callers and free functions like main(), only appearing when the calling context inherits from the defining class (IsDerivedFrom).
  • GitHub Issue #4 Resolution: Initializer List { ... } Overload Ambiguity (E118) (CallChecker.cpp, ConversionRankingEngine.cpp):
    • Ranked initializer list arguments (gs.symInitializerList or "init_list") equally across competing list-constructible parameter overloads (e.g. array vs dictionary).
    • Correctly emits as-err-call-ambiguous (E118) in parity with native angelscript_oracle.exe.
  • GitHub Issue #7 Resolution: Const Handle Assignment Diagnostics, Quick Fix & null on A&in (TypeConversionChecker.cpp, CodeActionConstQualifier.cpp, CallChecker.cpp):
    • Detected and diagnosed implicit conversions from const A@ to mutable A@ across variable initializers, assignment expressions, and function call returns with as-err-no-implicit-conversion.
    • Added an automated Quick Fix code action ("Add 'const' qualifier" / "Añadir calificador 'const'") via CodeActionConstQualifier.cpp.
    • Fixed passing <null handle> to non-handle value references (A&in), emitting as-err-call-no-matching-signature (E119) with compiler parity.
  • GitHub Issues #8 & #9 Resolution: Mixin Private Access (E113) & Overridden Virtual Properties (E230) (AccessChecker.cpp, TypeConversionChecker.cpp, LValueChecker.cpp):
    • Enabled unrestricted access to private members declared in mixin class A via this. inside A without emitting false as-err-private-member-access (E113).
    • Resolved virtual property setters (set_b) through inheritance hierarchy traversal when a derived class overrides only get_b(), allowing property assignment this.b = false;.
  • Unified Feature Parity & Telemetry Harness (UnifiedFeatureAuditHarness.h/.cpp, GitHubIssuesOracleParityTest.cpp, EmptyParenAndTelemetryParityTest.cpp):
    • Created a unified audit harness providing automated 3-way verification (Good, Bad, Boundary paths) with randomized symbol generation (GenerateRandomSymbolName()).
    • Implemented strict performance and latency telemetry assertions: Hover $\le 1.0\text{ ms}$, Completion $\le 5.0\text{ ms}$, Definition/References $\le 5.0\text{ ms}$, Code Actions $\le 5.0\text{ ms}$, Semantic Tokens $\le 20.0\text{ ms}$, Module Analysis $\le 100\text{ ms}$.
  • Verification & Test Coverage:
    • 100% of 2,608 CTest test cases passing in Release mode under /W4 /WX /we4100 /permissive-.
    • 12/12 active static quality gates passing with 0 warnings (check-quality.py).
    • 74/74 VS Code client extension integration tests passing.

Full Changelog: v1.1.6...v1.1.7

v1.1.6-exp.8

Choose a tag to compare

@github-actions github-actions released this 31 Oct 15:36

Experimental Release 1.1.6-exp.8: Generic Host Hierarchy & Delegate Resolution, Inlay Tooltip Fix, Virtual Property Value Parameter, Enum Member Isolation & Expression Type Caching

  • Generic Host Hierarchy & Dynamic Delegate Property Resolution (SemanticHelpers.cpp, EngineRuleConfig.h, DefinitionHandler.cpp, HoverHandler.cpp, check-ast-traversal.py):
    • Eradicated hardcoded keyword constants (k_selfIdentifier, k_baseClassIdentifier) and ad-hoc resolution functions (ResolveSelfOrBaseClass, ResolveSelfOrBaseReceiver), eliminating all const-laundering.
    • Implemented generic mixin host resolution (InferHostClassFromEnclosingMixin, ExpandMixinHostHierarchies): unresolved identifiers in mixin classes query host classes including the mixin from SymbolTable, resolving properties (get_self(), get_pev(), m_pPlayer) naturally through nominal symbol lookup.
    • Supported dynamic delegate properties from unusedRules.baseClassDelegateProperties (IsBaseClassDelegateProperty, ResolveDelegateTargetBaseClass), resolving to the first non-mixin base class in the host hierarchy with baseClassProxyMap integration, while giving absolute precedence to nominal declarations and local definitions.
    • Hardened server/scripts/check-ast-traversal.py to ban "BaseClass" and "self" string literals across server/src/**, ban k_baseClassIdentifier, k_selfIdentifier, and ResolveSelfOrBaseClass, and enforce GenerateRandomSymbolName in tests.
  • Inlay Hint Tooltip Deduplication & Reference Modifier Support (InlayHintHandler.cpp, InlayHintTest.cpp):
    • When part.location.has_value() is true, omitted part.tooltip to allow VS Code to render its native hover tooltip directly from the symbol location without duplicate code blocks.
    • Formatted fallback parameter tooltips using analysis::FormatParameter(param), accurately displaying parameter reference modifiers (&in, &out, &inout).
  • Cross-Namespace Enum Member Isolation in Definition & References (DefinitionHandler.cpp, TargetResolution.cpp, DefinitionTest.cpp, ReferencesTest.cpp):
    • Filtered candidate enum symbols in DefinitionHandler and TargetResolution by exact enclosing containerName and namespace, preventing homonymous enum members across different namespaces within the same module from contaminating Go-To-Definition or Find-References results.
  • Virtual Property Implicit value Parameter & Constructor Overload Hover (LocalScopeCollector.cpp, HoverHandler.cpp, HoverTest.cpp, SemanticAnalyzerTest.cpp):
    • Registered a LocalDefinition for the implicit value parameter (kind = Parameter, typeName = propTypeStr) inside virtual property set accessor scopes, enabling hover ((parameter) Type@ value), autocompletion, and semantic type checking.
    • Implemented generic constructor overload resolution (AppendConstructorSymbolsIfCall, CollectClassConstructors) in HoverHandler, ranking matching constructors via ResolveCallOverload and evaluated argument types.
  • Sub-30ms Module Performance Hardening & Snapshot Caching (WorkspaceStateStore.cpp, WorkspaceStateStore.h, SemanticHelpers.h):
    • Introduced module base symbol table snapshot caching (SetModuleBaseTable, GetModuleBaseTable, InvalidateModuleBaseTable), reducing module snapshot construction time from 18 ms to under 1 ms.
    • Propagated ExpressionTypeCache* throughout ReceiverTypeContext and all Layer 2 ExpressionTypeContext constructors, preventing redundant re-evaluations across chained and nested expressions in large script files (BuyMenu.as).
    • Disabled codeLensShowMixinExpansion by default in ServerConfig.h and extension settings to reduce visual clutter.
  • Mandatory Test Fixture Randomization (SemanticAnalyzerTest.cpp, HoverTest.cpp, DefinitionTest.cpp, ReferencesTest.cpp, InlayHintTest.cpp):
    • Replaced all static identifier names ("BaseClass", "self", "pev", "m_pPlayer", "EHandle", "WeaponBase") with randomized names generated by GenerateRandomSymbolName to prevent test-fitting.
  • Verification & Test Coverage:
    • 100% of 2,567 CTest test cases (35,000+ assertions) passing in Release mode under /W4 /WX /we4100 /permissive-.
    • 12/12 active static quality gates passing with 0 warnings (check-quality.py).
    • 74/74 VS Code client extension integration tests passing.

Full Changelog: v1.1.6-exp.7...v1.1.6-exp.8

v1.1.6-exp.7

Choose a tag to compare

@github-actions github-actions released this 31 Oct 02:42

Experimental Release 1.1.6-exp.7: ForEachDescendantNode Eradication, RuleIndex Incrementalization, Sub-30ms Analysis & Predefined Navigation Hardening

  • Complete Eradication of ForEachDescendantNode & AST Traversal Gate Enforcement (ClassRules.cpp, CodeActionExtractMethodOutputs.cpp, ASTUtils.h, check-ast-traversal.py):
    • Cached an owned NodeIndex inside MixinFileCacheEntry on initial parse, converting full AST walks in CollectLocalNames and CheckFuncBodyStatements into bounded $O(\log K)$ searches via std::lower_bound over pre-indexed nodes using std::string_view with zero heap allocations.
    • Replaced descendant searches in CodeActionExtractMethodOutputs with direct child AST inspection.
    • Completely deleted ForEachDescendantNode from parser/ASTUtils.h and instituted a repository-wide prohibition in server/scripts/check-ast-traversal.py.
  • Analysis Performance Hardening & Sub-30ms Incremental Rule Indexing (SymbolTable.cpp, ServerAnalysis.cpp, Server.h, SemanticAnalyzer.cpp):
    • Incrementalized RuleIndex: analysis snapshots now clone the pre-built .as.predefined index and incrementally apply cached RuleIndexPartials, cutting EnsureRuleIndex() execution time from ~75 ms to under 0.5 ms.
    • Corrected AnalysisTimingProfile field mapping via designated initializers so checker execution times are accurately reported instead of displaying 0.00 ms.
    • Added dedicated profiling for module closure indexing (closureMs) and decomposed AnalyzeNormalDocument into PrepareWorkerDocument, AnalyzeWorkerSemantics, and LogAnalysisProfileAndClosure (CCN $\le 8$, NLOC $\le 55$).
    • Shared a single ExpressionTypeCache across all semantic checkers (CallChecker, BinaryOperatorChecker, ComparisonOperatorChecker, LValueChecker, ConstChecker, TypeConversionChecker).
    • Persisted m_workerMixinCache and m_serverMixinCache across analysis requests with thread-safe lock-free cache invalidation via atomic exchange.
  • Inlay Hints Parameter Signature Tooltip & Ctrl+Click Navigation (InlayHintHandler.cpp, InlayHintTest.cpp):
    • Ensured part.tooltip unconditionally formats parameter type and name in an AngelScript markdown code block ((parameter) Type name), eliminating redundant "Go to Definition" tooltip overwrites.
    • Normalized target URIs in ResolveParameterLocation to match canonical DefinitionHandler paths and added fallback to ctx.callee.selectionRange for predefined symbols with zero-offset parameter locations.
  • Block Virtual Property Hover & Binary Condition Operand Resolution (HoverHandler.cpp, SemanticHelpers.cpp, HoverTest.cpp):
    • Resolved SymbolType::Property declarations carrying VariableSignature, stripping handle (@) and const modifiers via MemberOwnerType to traverse nested member accesses (m_pPlayer.IsOnLadder(), m_pPlayer.pev.flags).
    • Corrected child member expression matching inside nested binary condition trees (||, &, ==), accurately resolving identifiers under cursor.
    • Added randomized unit test coverage in HoverTest.cpp validating hover across all operands in complex compound conditions.
  • Predefined Document Editor Capabilities (DocumentStore.cpp, TextDocumentSyncHandlers.cpp, ServerHarnessTest.cpp):
    • Preserved AST trees in DocumentStore during LinkDocument and GetTree via ts_tree_copy when .as.predefined stubs are opened.
    • Parsed and indexed opened .as.predefined stubs so that SemanticTokensHandler, HoverHandler, and CodeLensHandler function immediately when viewed in editor tabs.
    • Added integration harness test asserting valid Semantic Tokens and Hover responses on opened predefined stubs.
  • CI Workflow Infrastructure (ci.yml):
    • Upgraded GitHub Actions macOS runners from deprecated macos-14 to macos-15.
  • Verification & Test Coverage:
    • 100% of 2,628 test assertions passing in Release mode under /W4 /WX /we4100 /permissive-.
    • 12/12 active static quality gates passing with 0 warnings (check-quality.py).

Full Changelog: v1.1.6-exp.6...v1.1.6-exp.7