teal-language-server icon indicating copy to clipboard operation
teal-language-server copied to clipboard

textDocument/completion does not work on function parameters

Open wu4 opened this issue 7 months ago • 2 comments

local interface ExampleInterface
  field: boolean
end
function example(param: ExampleInterface)
  param. -- does not autocomplete its fields...
  local a = param
  a. -- works!
end

wu4 avatar May 09 '25 14:05 wu4

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... Image

FourierTransformer avatar May 12 '25 01:05 FourierTransformer

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.

wu4 avatar May 12 '25 14:05 wu4