Skip to content

v1.1.6-exp.8

Choose a tag to compare

@github-actions github-actions released this 31 Oct 15:36
· 310 commits to main since this release

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