teal-language/teal-language-server

Inline auto-completion not working

Opened this issue · 0 comments

local record Payload
  amount: number
end

local payload: Payload = {
  -- caret here doesn't autocomplete
}

payload. -- here it does in the moment I type the period

print(payload)

That's basically it. If I want autocompletion for a record, I have to fill it in like so:

record.prop1 = 1
record.prop2 = 2 -- etc

-- I'd rather do it in the table literal if possible

local record: SomeType = {
-- [...]
}