Files
CustomNPC-Plus/src
bigguy345 956410c345 feat: implement IntelliJ-style weigher chain for autocomplete ranking
- 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)
2026-03-13 23:00:46 +02:00
..
2026-03-10 22:01:54 -03:00