Open
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?
Type Checking
Expected Behaviour
"inject-field" or "undefined-field" should show an error in table definition
Actual Behaviour
"Lua.diagnostics.severity": {
"inject-field": "Error",
"undefined-field": "Error"
"missing-fields": "Error" // <-this works
},
---@type Foo
local entity = { -- <--expected error "bar is missing"
here_should_be_an_error ="but is not"
}
---@class (exact) Foo
---@field bar string
Reproduction steps
- Go to '...'
- Click '...'
- See error '...'
Additional Notes
No response
Log File
No response
Metadata
Metadata
Assignees
Labels
No labels