mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 01:29:05 +00:00
- Add 8 independent weigher classes (MatchQuality, MemberKind, ContextFit, UsageFrequency, ImportStatus, Deprecated, InheritanceDepth, Alphabetical) - Replace fragile penalty-based scoring with composable weigher chain architecture - Expand MemberKind to 11 tiers: enum_const > local > instance_field > instance_method > type_class > type_enum > type_interface > static_field > static_method > keyword > snippet - Reorder weighers for optimal UX: imported always ranks above unimported regardless of usage - Fix unimported class penalty bug (was being overwritten by calculateMatchScore) - Implement DeprecatedWeigher (deprecated flag now scored) - Mark addScoreBoost() @Deprecated in favor of weigher chain - Add getInheritanceDepth() getter to AutocompleteItem - Update JSAutocompleteProvider to use 8-weigher chain with InheritanceDepthWeigher - Comprehensive test coverage: 127+ test methods across weigher unit tests and integration tests - Matches IntelliJ IDEA's weigher chain pattern (battle-tested production architecture)