SpyglassMC / Spyglass

Development tools for vanilla Minecraft: Java Edition data pack developers.
https://spyglassmc.com
MIT License
291 stars 31 forks source link

Auto-completing of custom score holders results in a backslash #1518

Open muotian opened 1 month ago

muotian commented 1 month ago

As shown in the image, the auto-completion suggested the score holder defined elsewhere. But after hitting tab or clicking the option, it becomes a backslash. This seems to affect any JSON format, including raw JSON text format.

image image

{ "condition": "value_check", "range": 0, "value": { "type": "score", "score": "objective", "target": { "type": "fixed", "name": "" } } }

misode commented 1 month ago

(dev note) This may be caused by us not escaping the $ in the insert text