Repository navigation
v1.1.6-exp.8
·
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 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