Closed Aspecky closed 4 months ago
EDIT: nvm, I am wrong. I will look into this
Could you also see into FindFirstChild
and WaitForChild
autocompleting the children like it does in studio or does that deserve its own issue?
This is what I mean:
Sorry for the delay in this. Your second comment will be under the #685 issue. I will also fix the first part for this. I will make a separate issue (#689) about supporting recursive find first childs.
Fixed by f657718dcb1d709e82cb7202e242b34530cd7d6c
The
.
operator gives proper autocompletes about the children of an instance when the companion studio plugin is on, but when getting the children using:FindFirstChild
or similar, the type gets overridden which makes you lose autocompletes:Roblox studio also does respect those functions along with their arguments whereas luau-lsp doesnt, e.g:
This logic applies to all the functions that traverse the tree of an instance.
Current workaround is to cast the type using
typeof(Instance.Child)
but that can get verbose very quick.