Closed rogeriodec closed 2 years ago
It's supposed to update your project settings with something like:
Make sure that you have opened a folder instead of a single file. And ideally save the workspace as a project so that your settings are preserved.
(Note that there are warnings in project settings when using LSP-json
but that hopefully doesn't affect the behavior)
Thanks. In fact, I had to create a project for it. I've never actually used projects before, but that's okay.
However, there is an issue: If I Mark a variable as defined global, ALL other variables that appear underlined with the same problem are no longer charged.
Before:
After:
To get the correct result, I have to close the file and open it again:
What you probably want is to use the Lua.workspace.library
setting to point to a Roblox interface. I don't know exactly how that works though. I believe @zainthemaynnn got that working.
Actually @rchl solved the original problem. My last post is to inform another behavior.
I'm using Roblox-Lua and there are some internal global variables that don't need to be declared, such as "workspace", "Vector3", etc. LSP-Lua is showing this warning:
If I choose `Mark 'workspace' as defined global, it changes nothing:
What's wrong?