teal-language-server
teal-language-server copied to clipboard
textDocument/completion does not work on function parameters
local interface ExampleInterface
field: boolean
end
function example(param: ExampleInterface)
param. -- does not autocomplete its fields...
local a = param
a. -- works!
end
Thanks for providing an example! What editor are you using and are you on the latest version? I'm curious if there's some weirdness with the editor interaction.
I'm unfortunately not able to replicate it...
Ah. I'm very sorry - I think it may have something to do with the cache. Initially I receive (none), and after deleting and rewriting the code I receive the correct arguments. I'm using Neovim and testing with 0ccedf7. I might be wrong about my assumption - I'll investigate this further once I'm back from work.