Closed
Description
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Diagnostics/Syntax Checking
Expected Behaviour
the language server correctly deduces the type of the variable but indicates which is not declared.
only occurs when variables are declared at object creation.
Actual Behaviour
nothing
Reproduction steps
---@class test
---@field position number
local test = {
position = 0,
started = false,
}
---@param animation test
local function f1(animation)
animation.position = 1 -- ok
animation.started = false -- Diagnostics. (inject-field)
end
Additional Notes
No response
Log File
No response
Metadata
Metadata
Assignees
Labels
No labels