SpyglassMC / Spyglass

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

Provide quick-fix for undeclared symbols #1222

Open misode opened 4 months ago

misode commented 4 months ago

When encountering an undeclared symbol like a function or loot table, the LSP should suggest a quick fix for creating that resource.

lerokko commented 2 months ago

Wasn't that already suggested 4 years ago, worked in 3.0.0-3.4.19, and just broke in 4.0.0?

https://github.com/SpyglassMC/Spyglass/issues/366 (https://github.com/SpyglassMC/Spyglass/commit/75d44e61e95d0d43a3c9573ab7b8dbe4874e6967)

I downgraded to 3.4.19 for the time being and it works. I use it all the time to create mcfunctions. I rarely make them with "New File..." nowadays. This Quick-fix is super useful!

EDIT: I am using 1.21 where the functions directory has been renamed to function without s.

MulverineX commented 2 months ago

Yeah this appears to be a regression, apologies! Hopefully someone can work on this soon

lerokko commented 2 months ago

Yeah this appears to be a regression, apologies! Hopefully someone can work on this soon

Should this issue then not receive the bug label?