YarnSpinnerTool / YarnSpinner

Yarn Spinner is a tool for building interactive dialogue in games!
https://yarnspinner.dev
MIT License
2.3k stars 201 forks source link

Fully qualified yarn commands don't get detected by the LSP #376

Open McJones opened 11 months ago

McJones commented 11 months ago

If you fully qualify the YarnCommand attribute (so [Yarn.Unity.YarnCommand("do_a_thing")] instead of [YarnCommand("do_a_thing")]) even though this works fine in Unity the LSP doesn't correctly link this in the editor.

This means you get warnings about the command even though it works fine. As a workaround you can import Yarn.Unity and then use the shorter form.

McJones commented 9 months ago

this also impacts fully qualified functions using the YarnFunction attribute