Open misode opened 4 weeks ago
I modified the record completer a bit in #1238 so it works for JSON completions, but the issue with selector arguments still remain. This is caused by a dispatch
trying to find the ctx.offset
inside the value node, which won't match. This should be looked into in the future
How to reproduce
give @s[gamemode= ]
in a mcfunction file]
=
Note: this isn't very common in selector arguments, but it is extremely common in JSON objects
Cause
When record nodes with an empty value (like the above) are parsed, there is a gap between the end of
sep
and the start ofvalue
. Essentially thevalue
node is an node with an empty range, and the very end of the record. This prevents the record completer from callingvalue
.