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

.ysls.json no longer read in VS Code with extension v2.2.119 #370

Closed benwest closed 10 months ago

benwest commented 1 year ago

After updating the Yarn Spinner VS Code extension to version 2.2.119, all my functions and commands in scripts cannot find their definitions from .ysls.json (no Unity). Reverting to 2.2.106 brings them back.

The release notes mention Yarn Project Files, so maybe I need to create one of those? But it's not documented what to name it or where to put it.

Thanks for your time and for the library 😘

krispya commented 11 months ago

Here is an example: https://github.com/YarnSpinnerTool/YarnSpinner/tree/1fae2a59f8b910495354709d574635f2c7896729/YarnSpinner.LanguageServer.Tests/TestData/TestWorkspace/Project2

This worked for me with some tweaking. It isn't documented but the Yarn project files need to be named as name.yarnproject where 'name' can be anything.