We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual Studio Code Extension (sumneko.lua)
Windows
Type Checking
"inject-field" or "undefined-field" should show an error in table definition
"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
No response
The text was updated successfully, but these errors were encountered:
Seems duplicated as the following issues:
Meanwhile, I think the undefined-field check is unrelated here. 🤔 It is for checking if the code tries to index an undefined field:
undefined-field
---@type Foo local entity = { -- <--expected error "bar is missing" } print(entity.x) --> Undefined field `x`. ---@class (exact) Foo ---@field bar string
Sorry, something went wrong.
No branches or pull requests
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
Reproduction steps
Additional Notes
No response
Log File
No response
The text was updated successfully, but these errors were encountered: