Closed Eggflaw closed 6 months ago
All done
Whoops I forgot to change the default configuration on README.md
After checking out the source code of the studio plugin, there seems to be no sign of sending DataModel when an instance's name is renamed but removing instances should be working as intended so I'll take a closer look on this with vscode
https://github.com/JohnnyMorganz/luau-lsp/blob/main/plugin/src/init.server.lua#L177
Ok so after a bit of testing, this is more a luau-lsp's studio plugin issue, just make the change I've suggested and I'll merge this.
I am sure this is an issue with the config module the callbacks are being called first before the new options are being set
for _, data in ipairs(callbacks) do
if has_changed(data.path) then
data.callback()
end
end
M.options = new_options
ref: https://github.com/lopi-py/luau-lsp.nvim/blob/main/lua/luau-lsp/config.lua#L83
Oh, you're right. Thanks!
Special thanks to luau-tree! Without this project and other references, I wouldn't be able to implement this myself.
studio.lua
: Creates the server usingvim.uv
and receive requestshttp.lua
: A collection of utility functions used for studio.lua