bigguy345
62d87c0c66
Added comment/multi-line handling for Autocomplete findReceiverExpression
2026-01-28 20:30:41 +02:00
bigguy345
9e04a1184c
Lambda impl Phase 1: Track inner callables as nested scopes so parameters and locals resolve correctly inside the callable body,
2026-01-28 06:59:58 +02:00
bigguy345
6c5a269966
Fixed Autocomplete suggestions not working when whitespaces exist between it and receiver like "player. get <- doesnt work due to WS"
2026-01-28 06:06:01 +02:00
bigguy345
969d82dff8
Fixed visual hover info bugs for generics
2026-01-28 04:55:32 +02:00
bigguy345
125a799df4
Optimised and refined type generics parsing. Removed bloat and added edge case handling
2026-01-28 04:37:17 +02:00
bigguy345
5795cc984b
Completely parsed type generics.
...
List<IPlayer> list;
list.get(0) NOW returns IPlayer, instead of T or Object.
Nested generics are also handled and functional:
Map<String, List<IPlayer>>
Implemented TokenHoverInfo/Autocomplete rendering and handling for generics as well.
2026-01-27 17:10:31 +02:00
bigguy345
1e96a21cca
Added JS overloads to autocomplete properly
2026-01-26 22:54:40 +02:00
bigguy345
235fd3b3f3
Improved comment/string excluded range detection for auto-pair insertion
2026-01-26 21:52:04 +02:00
bigguy345
ea8cc51eef
Prevented auto pair insertion of '', "", [], () blocks in excluded ranges (comments,strings)
2026-01-26 19:19:58 +02:00
bigguy345
83a54c10b8
forgot this from autocomplete insertion carat between () commit
2026-01-26 19:10:27 +02:00
bigguy345
720d0dc1b9
On Autocomplete insertion, set cursor carat inside () if method has parameters
2026-01-26 19:01:54 +02:00
bigguy345
bd1743d069
Penalised keyword items in autocomplete suggestions
2026-01-26 03:51:02 +02:00
bigguy345
76b6dae9d4
Added API global engine objects and DataScript global definitions as JS autocomplete suggestions
2026-01-26 03:50:33 +02:00
bigguy345
aae2fdb23a
Added DataScript global definitions i.e. npc, world, event to syntax highlighter as global vars
2026-01-26 03:49:38 +02:00
bigguy345
df0d46e63d
Properly parsed enclosed namespace types like INpcEvent.UpdateEvent and added them to JSTypeRegistry.types
2026-01-26 03:48:18 +02:00
bigguy345
46b62eea56
Bridged .d.ts patch overrides to java side to show in autocomplete/hoverinfo
2026-01-25 06:22:11 +02:00
bigguy345
f43b9ae186
Allowed for .d.ts patches to be applied and merge into existing types
...
i.e IPlayer.d.ts patch for getDBCPlayer() by npcdbc addon to return IDBCAddon instead of IDBCPlayer
2026-01-25 05:37:30 +02:00
bigguy345
f1a968d196
Got bridges working for new JSTypeRegistry domains (.d.ts files of each loaded mod)
2026-01-24 06:47:44 +02:00
bigguy345
b86c0284ac
Loaded all .d.ts files in assets/modId/api directory of ALL loaded mods
2026-01-24 06:42:38 +02:00
bigguy345
26bf90ac66
Improved TokenHoverRenderer box height calculations
2026-01-24 05:36:59 +02:00
bigguy345
52db241b9a
DtsJavaBridge interface/superclass fallback
...
Cached DtsJavaBridge lookups
Java varargs now match DTS reset params (...x: T)
2026-01-24 05:36:16 +02:00
bigguy345
3f6972f9f6
Bridged over JSDocs/param names for fields/methods of java reflected classes that have a matching JS type twin loaded from .d.ts files
2026-01-24 04:56:42 +02:00
bigguy345
64f8ca657c
Parsed fully qualified name of API java classes in .d.ts files
2026-01-24 04:54:47 +02:00
bigguy345
1b9e674b36
Proper parsing for generic JSDoc tags like "@word this is a tag"
...
Removed deprecated/since tags, parsed them as generics instead
2026-01-24 03:29:48 +02:00
bigguy345
021a32b962
Added JSDocInfo for TypeInfo too
2026-01-24 02:24:13 +02:00
bigguy345
8799e08c17
Expanded scope of DTSJSDocParser type/param patterns so they are more forgiving
2026-01-24 02:23:59 +02:00
bigguy345
ff68dc9258
Parsed all JSDoc info for all members of all .d.ts files. Documentations for all API classes now renders properly in hover info
...
-Added proper TokenHoverInfo for JS classes
2026-01-23 23:10:26 +02:00
bigguy345
b7a46cab1d
Added more JSDoc tags : @see, @deprecated, @since
2026-01-23 22:44:01 +02:00
bigguy345
96239118e7
OMG janino-scripts-final merge
2026-01-23 19:01:56 +02:00
Kam
a9b602713c
Large Cleanup to Code Imports and Formatting
2026-01-22 23:07:38 -05:00
bigguy345
26a9c99000
All Imports used in JaninoScript implementations (param types/return types) are now passed implicitly to ScriptDocument to store for when hook stubs are generated/hooks are manually added
2026-01-14 03:02:15 +02:00
bigguy345
576401ebde
Added object instantiation for Jave.type: i.e.
...
var FileClass = Java.type("java.io.File")
var file = new FileClass("name")
2026-01-10 06:31:27 +02:00
bigguy345
0d11db729b
Merge remote-tracking branch 'origin/syntax-highlighter-unified' into syntax-highlighter-unified
2026-01-10 06:04:07 +02:00
Kam
78f7fa65f1
Add Script Context and better parsing for d.ts handling
2026-01-09 22:59:13 -05:00
bigguy345
71050da341
Fixed findReceiverExpr breaking when contains strings
2026-01-10 05:52:49 +02:00
bigguy345
a5c02e6c94
Fixed static access problem for AutocompleteProvider & generally
2026-01-10 05:44:36 +02:00
bigguy345
a106343a0e
NashornBuiltins fixes
2026-01-10 05:07:48 +02:00
bigguy345
289c78f4de
Proper TypeInfo getter for synthetic type members
2026-01-10 04:34:24 +02:00
bigguy345
55ae325458
Removed duplicate class
2026-01-10 04:09:50 +02:00
bigguy345
1e844444cf
Colored Autocomplete items according to their token types
2026-01-09 05:11:07 +02:00
bigguy345
5c604a6919
Colored return type of members in Autocomplete menu according to their type token (Class/Interface/Enum/Primitive)
2026-01-09 04:46:47 +02:00
bigguy345
c661bc95c8
Small AutocompleteMenu draw bug
2026-01-09 04:28:58 +02:00
bigguy345
277fe3387d
oops forgot important class
2026-01-09 03:00:32 +02:00
bigguy345
bfcdd3c47c
- Set vars assigned with type ClassTypeInfo (e.g.Java.type("")) as static access
...
- Unified isStaticAccess checkers to TypeResolver.isStaticAccessExpression
2026-01-08 07:05:30 +02:00
bigguy345
176a3b6d50
- Added Java.type("") for JS API
...
- Added synthetic types (non-existant in java classloader and JS API, but custom defined like Nashorn's Java.type/extends/etc..
2026-01-08 06:56:41 +02:00
bigguy345
5790679048
Properly setup autocompletion member suggestion for java classes in JS API
2026-01-08 04:48:16 +02:00
bigguy345
9eb30f862a
Fixed AutocompleteManager breaking in findReceiverExpression if it contains quotes ""
2026-01-08 04:20:39 +02:00
bigguy345
e45f6b7da5
Forgot this from last commit
2026-01-08 04:19:54 +02:00
bigguy345
869dda34a5
-Java class types can are now functional in JS API. (Autocomplete and marking)
...
-Revamped JSMethodInfo/ParamInfo/FieldInfo/TypeInfo to allow for the above change
2026-01-08 04:09:18 +02:00
bigguy345
99f7d05948
Properly resolved type parameters for autocomplete display (e.g., T → EntityPlayerMP)
2026-01-08 03:14:44 +02:00