Repository navigation
Releases
Releases · angelscript-tools/angelscript-lsp
v1.2.5
Fixed
- A predefined stub that spells template parameters with the
classkeyword, such asclass array<class T>andclass map<class K, class V>, no longer reports E260 ("Template 'array' expects 2 sub type(s)"). The engine accepts that spelling inRegisterObjectType, andangelscript --dump-predefinedwrites it. The grammar now accepts the optionalclass, and the symbol collector counts only theparamfields.
Changed
- Restructured the root, client and Spanish READMEs and pinned
tree-sitter-angelscriptto the class template parameter fix (2ef4464).
Full Changelog: v1.2.4...v1.2.5
v1.2.4
Added
- Added an optional
enginesection toangelscript.rules.jsonwithversion,source(officialorcustom) andname. The default is AngelScript 2.39.0, the latest release and the one fully supported. The server logs everyenginePropertieskey that is newer than the declared version, and acustomengine keepsenginePropertiesas the source of truth. - The MCP
engine_rulestool returns the engine profile with its warnings, andworkspace_inforeturnswarningsandnextStepswhen 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.mdanddocs/CONTRIBUTING.es.md. Markdown other than the README, the changelog, the contributing guide andAGENTS.mdlives indocs/, and Python scripts live inscripts/folders.
Full Changelog: v1.2.3...v1.2.4
v1.2.3
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.mdwith 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_PATsecret is set. - The MCP bridge now exposes
workspace_info,engine_rules,module_graph,references,workspace_symbolsandpredefined_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 newangelscript/workspaceInfo,angelscript/engineRules,angelscript/moduleGraphandangelscript/predefinedLookuprequests, which wait for the initial workspace scan. - Added the
angelscript.runner.pathsetting so alaunchconfiguration withprogramcan 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
angelscriptandasconPATHand continues to supportangelscript-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
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
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.predefinedstub 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
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
v1.1.7
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.symFunctionDeclarationnodes without bodies in AST traversal, registering them asSymbolType::VariablewithVariableSignaturerather than phantom function prototypes. - Corrected semantic tokens classification to highlight empty-parentheses declarations as variables/properties instead of functions.
- Supported empty-parentheses variable declarations initialized via default constructor across class members (
- Workspace Module Isolation & Interactive Module UI (
ServerAnalysis.cpp,ServerModules.cpp,WorkspaceHandlers.cpp,extension.ts):- When
angelscript.modulesis configured, semantic analysis and diagnostic publication are strictly restricted to scripts within the active module's#includeclosure. - 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
LanguageStatusItemshowing 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).
- When
- 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).
- Enforced strict member visibility checking in
- GitHub Issue #4 Resolution: Initializer List
{ ... }Overload Ambiguity (E118) (CallChecker.cpp,ConversionRankingEngine.cpp):- Ranked initializer list arguments (
gs.symInitializerListor"init_list") equally across competing list-constructible parameter overloads (e.g.arrayvsdictionary). - Correctly emits
as-err-call-ambiguous(E118) in parity with nativeangelscript_oracle.exe.
- Ranked initializer list arguments (
- GitHub Issue #7 Resolution: Const Handle Assignment Diagnostics, Quick Fix &
nullonA&in(TypeConversionChecker.cpp,CodeActionConstQualifier.cpp,CallChecker.cpp):- Detected and diagnosed implicit conversions from
const A@to mutableA@across variable initializers, assignment expressions, and function call returns withas-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), emittingas-err-call-no-matching-signature(E119) with compiler parity.
- Detected and diagnosed implicit conversions from
- 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 Aviathis.insideAwithout emitting falseas-err-private-member-access(E113). - Resolved virtual property setters (
set_b) through inheritance hierarchy traversal when a derived class overrides onlyget_b(), allowing property assignmentthis.b = false;.
- Enabled unrestricted access to private members declared in
- 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}$ .
- Created a unified audit harness providing automated 3-way verification (Good, Bad, Boundary paths) with randomized symbol generation (
- 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.
- 100% of 2,608 CTest test cases passing in Release mode under
Full Changelog: v1.1.6...v1.1.7
v1.1.6-exp.8
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 fromSymbolTable, 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 withbaseClassProxyMapintegration, while giving absolute precedence to nominal declarations and local definitions. - Hardened
server/scripts/check-ast-traversal.pyto ban"BaseClass"and"self"string literals acrossserver/src/**, bank_baseClassIdentifier,k_selfIdentifier, andResolveSelfOrBaseClass, and enforceGenerateRandomSymbolNamein tests.
- Eradicated hardcoded keyword constants (
- Inlay Hint Tooltip Deduplication & Reference Modifier Support (
InlayHintHandler.cpp,InlayHintTest.cpp):- When
part.location.has_value()is true, omittedpart.tooltipto 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).
- When
- Cross-Namespace Enum Member Isolation in Definition & References (
DefinitionHandler.cpp,TargetResolution.cpp,DefinitionTest.cpp,ReferencesTest.cpp):- Filtered candidate enum symbols in
DefinitionHandlerandTargetResolutionby exact enclosingcontainerNameand namespace, preventing homonymous enum members across different namespaces within the same module from contaminating Go-To-Definition or Find-References results.
- Filtered candidate enum symbols in
- Virtual Property Implicit
valueParameter & Constructor Overload Hover (LocalScopeCollector.cpp,HoverHandler.cpp,HoverTest.cpp,SemanticAnalyzerTest.cpp):- Registered a
LocalDefinitionfor the implicitvalueparameter (kind = Parameter,typeName = propTypeStr) inside virtual propertysetaccessor scopes, enabling hover ((parameter) Type@ value), autocompletion, and semantic type checking. - Implemented generic constructor overload resolution (
AppendConstructorSymbolsIfCall,CollectClassConstructors) inHoverHandler, ranking matching constructors viaResolveCallOverloadand evaluated argument types.
- Registered a
- 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*throughoutReceiverTypeContextand all Layer 2ExpressionTypeContextconstructors, preventing redundant re-evaluations across chained and nested expressions in large script files (BuyMenu.as). - Disabled
codeLensShowMixinExpansionby default inServerConfig.hand extension settings to reduce visual clutter.
- Introduced module base symbol table snapshot caching (
- 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 byGenerateRandomSymbolNameto prevent test-fitting.
- Replaced all static identifier names (
- 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.
- 100% of 2,567 CTest test cases (35,000+ assertions) passing in Release mode under
Full Changelog: v1.1.6-exp.7...v1.1.6-exp.8
v1.1.6-exp.7
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
NodeIndexinsideMixinFileCacheEntryon initial parse, converting full AST walks inCollectLocalNamesandCheckFuncBodyStatementsinto bounded$O(\log K)$ searches viastd::lower_boundover pre-indexed nodes usingstd::string_viewwith zero heap allocations. - Replaced descendant searches in
CodeActionExtractMethodOutputswith direct child AST inspection. - Completely deleted
ForEachDescendantNodefromparser/ASTUtils.hand instituted a repository-wide prohibition inserver/scripts/check-ast-traversal.py.
- Cached an owned
- 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.predefinedindex and incrementally apply cachedRuleIndexPartials, cuttingEnsureRuleIndex()execution time from ~75 ms to under 0.5 ms. - Corrected
AnalysisTimingProfilefield mapping via designated initializers so checker execution times are accurately reported instead of displaying0.00 ms. - Added dedicated profiling for module closure indexing (
closureMs) and decomposedAnalyzeNormalDocumentintoPrepareWorkerDocument,AnalyzeWorkerSemantics, andLogAnalysisProfileAndClosure(CCN$\le 8$ , NLOC$\le 55$ ). - Shared a single
ExpressionTypeCacheacross all semantic checkers (CallChecker,BinaryOperatorChecker,ComparisonOperatorChecker,LValueChecker,ConstChecker,TypeConversionChecker). - Persisted
m_workerMixinCacheandm_serverMixinCacheacross analysis requests with thread-safe lock-free cache invalidation via atomic exchange.
- Incrementalized
- Inlay Hints Parameter Signature Tooltip & Ctrl+Click Navigation (
InlayHintHandler.cpp,InlayHintTest.cpp):- Ensured
part.tooltipunconditionally 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
ResolveParameterLocationto match canonicalDefinitionHandlerpaths and added fallback toctx.callee.selectionRangefor predefined symbols with zero-offset parameter locations.
- Ensured
- Block Virtual Property Hover & Binary Condition Operand Resolution (
HoverHandler.cpp,SemanticHelpers.cpp,HoverTest.cpp):- Resolved
SymbolType::Propertydeclarations carryingVariableSignature, stripping handle (@) andconstmodifiers viaMemberOwnerTypeto 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.cppvalidating hover across all operands in complex compound conditions.
- Resolved
- Predefined Document Editor Capabilities (
DocumentStore.cpp,TextDocumentSyncHandlers.cpp,ServerHarnessTest.cpp):- Preserved AST trees in
DocumentStoreduringLinkDocumentandGetTreeviats_tree_copywhen.as.predefinedstubs are opened. - Parsed and indexed opened
.as.predefinedstubs so thatSemanticTokensHandler,HoverHandler, andCodeLensHandlerfunction immediately when viewed in editor tabs. - Added integration harness test asserting valid Semantic Tokens and Hover responses on opened predefined stubs.
- Preserved AST trees in
- CI Workflow Infrastructure (
ci.yml):- Upgraded GitHub Actions macOS runners from deprecated
macos-14tomacos-15.
- Upgraded GitHub Actions macOS runners from deprecated
- 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).
- 100% of 2,628 test assertions passing in Release mode under
Full Changelog: v1.1.6-exp.6...v1.1.6-exp.7
v1.1.6
Official 1.1.6 Release: 100% AST-First Architecture, Sub-30ms Incremental Analysis, Generic Mixin Host Context & Delegate Properties, Isolated Enum Navigation & Compiler-Grade Stability
- 100% AST-First Traversal & Tree-Sitter Architecture Hardening (
NodeIndex,ASTUtils,check-ast-traversal.py,ClassRules.cpp):- Completely eradicated recursive AST walks (
ForEachDescendantNode) and ad-hoc parent climb loops across the entire codebase, enforcing$O(\log K)$ interval lookups inNodeIndexand centralized upward navigation viaASTUtils.h. - Replaced text scanning and ad-hoc parsing with pre-indexed Tree-Sitter queries and precompiled grammar symbols (
GrammarSymbols), banning rawts_node_typeand index loops in Layer 2 and Layer 3 handlers. - Hardened static quality gate
check-ast-traversal.pyto strictly enforce AST depth bounds, ban raw upward climb loops outside Layer 1, and ensure total compliance withAGENTS.md.
- Completely eradicated recursive AST walks (
- Sub-30ms High-Performance Incremental Analysis & Snapshot Caching (
ServerAnalysis.cpp,WorkspaceStateStore.cpp,SymbolTable.cpp,SemanticHelpers.h):- Reduced incremental script analysis times from ~480 ms to
$\le 25\text{ ms}$ on large multi-thousand-line scripts (BuyMenu.as). - Incrementalized
RuleIndexby cloning the pre-built.as.predefinedindex and applying cached partial rules, slashing indexing time from 75 ms to under 0.5 ms. - Implemented module base symbol table snapshot caching (
SetModuleBaseTable,GetModuleBaseTable,InvalidateModuleBaseTable), reducing module snapshot construction time from 18 ms to under 1 ms. - Propagated a shared
ExpressionTypeCacheacross all semantic checkers (CallChecker,BinaryOperatorChecker,ComparisonOperatorChecker,LValueChecker,ConstChecker,TypeConversionChecker), eliminating redundant expression evaluations. - Persisted worker and server mixin caches across document sync requests with lock-free atomic exchange.
- Reduced incremental script analysis times from ~480 ms to
- Generic Mixin Host Context & Dynamic Delegate Property Resolution (
SemanticHelpers.cpp,EngineRuleConfig.h,DefinitionHandler.cpp,HoverHandler.cpp,TargetResolution.cpp):- Eradicated all hardcoded keyword constants (
k_selfIdentifier,k_baseClassIdentifier) and const-laundering functions, replacing them with generic, nominal symbol table lookup. - Implemented generic mixin host resolution (
InferHostClassFromEnclosingMixin,ExpandMixinHostHierarchies): unresolved identifiers in mixin classes query host classes including the mixin fromSymbolTable, resolving host properties (get_self(),get_pev(),m_pPlayer) naturally through nominal symbol lookup. - Added support for dynamic delegate properties configured via
unusedRules.baseClassDelegatePropertiesandbaseClassProxyMapinEngineRuleConfig, resolving to the first non-mixin base class in the host hierarchy while guaranteeing full precedence to local declarations.
- Eradicated all hardcoded keyword constants (
- Virtual Property Implicit
valueParameter & Constructor Overload Hover (LocalScopeCollector.cpp,HoverHandler.cpp,SemanticAnalyzer.cpp):- Registered an implicit
LocalDefinitionforvalue(kind = Parameter) inside virtual propertysetaccessor scopes, enabling hover ((parameter) Type@ value), autocompletion, and semantic type checking. - Implemented generic constructor overload resolution (
AppendConstructorSymbolsIfCall,CollectClassConstructors) inHoverHandler, ranking matching constructors viaResolveCallOverloadand evaluated argument types.
- Registered an implicit
- Cross-Namespace Enum Member Isolation in Definition & References (
DefinitionHandler.cpp,TargetResolution.cpp,ReferencesHandler.cpp):- Filtered candidate enum symbols in
DefinitionHandlerandTargetResolutionby exact enclosingcontainerNameand namespace, preventing homonymous enum members across different namespaces within the same module from contaminating Go-To-Definition or Find-References results.
- Filtered candidate enum symbols in
- Inlay Hint Tooltip UX & Normalized Predefined Navigation (
InlayHintHandler.cpp,InlayHintTest.cpp):- When
part.location.has_value()is true, omittedpart.tooltipto 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). - Normalized target URIs in
ResolveParameterLocationto match canonicalDefinitionHandlerpaths and added fallback toselectionRangefor predefined symbols with zero-offset parameter locations.
- When
- Zero Predefined Re-parsing & Full Editor Features on Opened Stubs (
DocumentStore.cpp,TextDocumentSyncHandlers.cpp,ServerHarnessTest.cpp):- Preserved AST trees in
DocumentStoreduringLinkDocumentandGetTreeviats_tree_copywhen.as.predefinedstubs are opened. - Enabled immediate Semantic Tokens, Hover, and CodeLens on
.as.predefinedstubs opened in editor tabs.
- Preserved AST trees in
- Deep AST Navigation Resilience & Include Closure Hardening (
Constants,ServerModules,SemanticAnalyzer):- Elevated
k_maxAstClimbDepthfrom 16 to 256 in AST traversal utilities to prevent premature search termination in deeply nested blocks (8+ nestedifstatements, lambda bodies, deep call chains). - Fixed false-positive
W108(as-warn-undeclared-identifier) on synthetic properties and member variables in deep block structures without hardcoding identifiers. - Expanded include closure resolution in
AppendIncludeGraphClosureandComputeModuleClosureto traverse parent and sibling include relationships transitively, eliminating false-positiveE103andE111on multi-level namespace sub-headers (schema.as).
- Elevated
- Zero Hardcoded Modifier Strings & Single-Pass Signature Formatting (
Keywords.h,SignatureFormatter.cpp):- Centralized declaration and access modifiers (
Private,Protected,Public,External,Shared,Mixin,Abstract,Final,Override,Explicit,Property,Delete) inangel_lsp::parser::keywords. - Rewrote signature formatting routines to use pre-reserved buffers with zero string literal duplication and zero
.insert(0, ...)reallocations.
- Centralized declaration and access modifiers (
- Test Fixture Randomization & Anti-Overfitting Governance (
tests/**):- Replaced static test symbol fixtures with dynamic randomized identifiers generated by
angel_lsp::test::GenerateRandomSymbolName()across semantic, definition, hover, references, and inlay hint test suites.
- Replaced static test symbol fixtures with dynamic randomized identifiers generated by
- 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.
- 100% of 2,567 CTest test cases (35,000+ assertions) passing in Release mode under
Full Changelog: v1.1.5...v1.1.6