KAMKEEL
98c94bd406
Trim comments
2026-08-11 11:32:01 -04:00
KAMKEEL
22a8ef5036
Merge branch 'dev' into pr-254
...
# Conflicts:
# src/main/java/noppes/npcs/client/gui/GuiNpcMobSpawnerSelector.java
2026-08-11 06:29:18 -04:00
KAMKEEL
a028142dda
Fix mouse wheel scrolling in the script editors
...
Mouse.getDWheel() clears the accumulated delta, so whichever widget polled it
first in a frame took it and every later reader saw zero. The script text areas
polled it themselves, after the parent screen had already drained it for its
scroll lists, so the wheel did nothing in the player, NPC and event script GUIs.
The screen now reads the wheel once per frame into the mouseScroll field it
already declared for this, and each widget zeroes it when it consumes it.
2026-08-11 05:08:15 -04:00
KAMKEEL
17f61de57a
Fix editor StackOverflow on self-referential generic bounds
...
fromGenericType expanded a type variable bound, then expanded the bound''s type
arguments, which led straight back to the same variable. Any enum reaches it
through Enum<E extends Enum<E>>, so typing ability.getAllowedBy() crashed the
client. Track the variables being expanded and emit repeats unbounded.
2026-08-11 03:20:34 -04:00
bigguy345
1a77728bcd
OVERHAULED IGuiData FRAMEWORK SO ALL UPDATES WIRE THROUGH SyncController (deprecated legacy setGuiData)
2026-04-03 18:00:27 +02:00
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
bigguy345
81b3d1c2d3
Fixed autocomplete item package color for interfaces/enums
2026-03-13 20:47:54 +02:00
bigguy345
f25b9164d0
Added parameter autocomplete coloring
2026-03-13 20:01:10 +02:00
bigguy345
c0a022c5b5
Tightened excluded range checks in receiver chain resolution (fixes stupid . in comments fkin up next line bug)
2026-03-13 19:49:30 +02:00
bigguy345
ce8c9b3b94
oh shit
2026-03-13 19:40:06 +02:00
bigguy345
85d4bb2628
man get this old washed shit outta my face
2026-03-13 18:33:27 +02:00
bigguy345
82128ce318
Proper Hover Info data for generic classes with type params
2026-03-13 18:33:03 +02:00
bigguy345
390b3446a3
Merge remote-tracking branch 'origin/syntax-highlighter-unified' into syntax-highlighter-unified
...
# Conflicts:
# src/main/java/noppes/npcs/client/gui/util/script/interpreter/type/TypeInfo.java
2026-03-13 18:30:09 +02:00
bigguy345
f66d2f0193
GenericContext overhaul, removed redundant TypeSubstitutor
2026-03-13 18:29:06 +02:00
bigguy345
53446e06c6
unified TypeInfo API access to it uses exposed TypeInfo members instead of inner raw Class reflection calls
2026-03-13 18:20:44 +02:00
bigguy345
691a7fb2c7
unified TypeInfo API access to it uses exposed TypeInfo members instead of inner raw Class reflection calls
2026-03-13 17:47:29 +02:00
bigguy345
335ffdd074
editor color scheme improvements
2026-03-13 06:41:22 +02:00
bigguy345
7282081832
Fixed x undefined when
...
//comment.
x = 10;
2026-03-13 06:06:00 +02:00
bigguy345
a3c7398628
Whole buncha ergonomic hover info tweaks
2026-03-13 05:52:41 +02:00
bigguy345
07594f574b
Fixed autocomplete showing in comments
2026-03-13 04:56:07 +02:00
bigguy345
3b7798338f
Proper TypeInfo.typeParam overload that is much needed + IntersectionTypeInfo for type parameter <T extends X & Interface1 & Interface2<T>>
2026-03-13 03:53:05 +02:00
bigguy345
eae5a08932
Made TokenType priority internal
2026-03-13 03:43:39 +02:00
bigguy345
547989a6d4
Smoothened script editor scrolling again (now that we have proper fonts)
2026-03-13 03:32:27 +02:00
bigguy345
4ccec31efa
Removed MODIFIER, IMPORT_KEYWORD and CLASS_IMPORT token types, all replaced with KEYWORD
2026-03-13 03:22:46 +02:00
bigguy345
b7c3c53dc9
Fixed ScriptColorScheme not respecting resourcepack priority
2026-03-13 03:03:39 +02:00
bigguy345
f1f3b17402
Correctly calculated new font width throughout script editor endpoints (for italics/bold)
2026-03-13 03:00:54 +02:00
bigguy345
254655cb1d
Improved <> formatting and auto insertion
2026-03-13 02:46:16 +02:00
bigguy345
05c27c5d20
Added cursor caret color to editor color scheme
2026-03-12 06:57:38 +02:00
somehussar
6f2288c81f
Simplify this. Issue was with wrongly packaged ZIPs
2026-03-12 04:58:45 +01:00
bigguy345
88d496137a
SCRIPT EDITOR COLOR SCHEMES (W.I.P
2026-03-12 04:53:27 +02:00
Kam
5acb371fab
Uncomment + Todo for Goatee
2026-03-11 14:18:03 -04:00
Kam
f18ae4e08f
Merge branch 'dev' into syntax-highlighter-unified
2026-03-11 14:08:19 -04:00
bigguy345
9207cc3f43
Fixed paramterize() -> substitute() cyclic StackOverFlow
2026-03-11 14:41:46 +02:00
bigguy345
0af3bdfd04
Removed redundants
2026-03-11 14:39:37 +02:00
bigguy345
102c4fc398
Expanded scope of patterns/markers to handle nested generics more robustly
2026-03-11 14:38:49 +02:00
bigguy345
f53edb6e64
Parsed lambdas properly in their own path + cached their values and hooked up their AssingmentInfo errors
2026-03-11 14:35:38 +02:00
bigguy345
acaefbb68c
Improved unimported autocomplete classes handling + colored gray
2026-03-11 14:08:28 +02:00
bigguy345
57128a8d8b
Fixed various formatting line wrap bugs
2026-03-11 10:53:32 +02:00
Kam
6bf33e4296
Add API Registry System for API Links and Such
2026-03-11 03:55:07 -04:00
bigguy345
28b8cda4cf
Improved lambda formatting
2026-03-11 08:52:05 +02:00
bigguy345
a00dbf4b1a
Improved Loop patterns
2026-03-11 08:39:23 +02:00
bigguy345
627b973175
Split parseScriptTypes into 2 passes to properly resolve forward references to script-defined types
2026-03-11 08:38:17 +02:00
bigguy345
cd0c9640af
Fixed more lambda bugs in editor and janino compiler (the scope of the lambda wasn't properly set for constructors)
2026-03-11 08:18:13 +02:00
bigguy345
c88bd50be9
ScriptTypeInfo is now properly compared to TypeInfo parents + removed parent constructor mismatch errors from interfaces
2026-03-11 08:17:23 +02:00
bigguy345
1289778874
Revamped the error framework with new DocumentErrors in TokenHoverInfo
2026-03-11 08:15:32 +02:00
bigguy345
90c7abca5f
Tightened and refined the hell out of class declaration type parameter marking logic
2026-03-11 07:29:19 +02:00
bigguy345
3a57ed57da
New improved DocumentError framework (oops forgor)
2026-03-11 06:32:29 +02:00
bigguy345
13b71a6c48
New improved DocumentError framework
2026-03-11 06:31:08 +02:00
bigguy345
57ba3236bc
Extended TypeParam parsing and marking code for class header declarations and & interface additions like <T extends Number & Comparable & Serializable)
2026-03-11 05:38:59 +02:00
bigguy345
4ddb6d32f3
Added lambda brace auto-complete
2026-03-11 05:30:36 +02:00