Repository navigation
v1.1.6-exp.7
·
314 commits
to main
since this release
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