Open xiangnanscu opened 1 year ago
v3.6.2
I cannot reproduce it, what's your settings?
{
"Lua.runtime.version": "LuaJIT",
"Lua.diagnostics.globals": [
"ngx",
"xodel",
"loger"
],
"files.autoSave": "onFocusChange",
"Lua.workspace.library": [
"${3rd}/OpenResty/library"
],
"Lua.runtime.unicodeName": true,
"editor.formatOnPaste": false,
"Lua.typeFormat.config": {
"format_line": "false",
"auto_complete_end": "false",
"auto_complete_table_sep": "false"
},
"[conf]": {
"editor.formatOnSave": false
},
"Lua.workspace.checkThirdParty": false
}
Still cannot reproduce this. Can you provide a demo project?
Please check if this commit fixed it: 21ee5e8a7393e936f2c36d5628e2a307750f4ff5
fixed. but now ngx.status = 'aa'
won't show error too. never mind, I don't care this :-)
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows WSL
What is the issue affecting?
Diagnostics/Syntax Checking
Expected Behaviour
no problem
Actual Behaviour
Reproduction steps
Just type
ngx.status = ngx.HTTP_NOT_FOUND
Additional Notes
No response
Log File
No response