lua-language-server
lua-language-server copied to clipboard
A language server that offers Lua language support - programmed in Lua
Currently, when using this language server, you get warnings for global variables: ```lua if someGlobalVariable then -- Undefined global `someGlobalVariable `. Lua Diagnostics.(undefined-global) print("wow!") end ``` The way to squelch...
### 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...
### 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...
it would be really cool if there would be a code action (available when inside one of the two) that allows to change between ternary assignments and if/else statements example:...
When annotating that one class has inherited from another, there is currently no way to annotate a function that returns it's current type that the current type should change when...
```lua ---@class definition ---@field some_stuff '"value_1"'|'"value_2" ---@field some_function fun(string): string ---@param def definition function register(def) .... end register({ some_stuff = "value_1", -- got auto-completion of the two possible values some_function...
### 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...
### 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? Annotations ### Expected Behaviour ```lua...
I have run into an interesting issue while [documenting Busted and luassert](https://github.com/sumneko/lua-language-server/pull/1556). When defining a function that lives inside some nested table, I am not receiving completions in another file....
用来标记该函数是抛出异常,永远不返回. 当前内建只支持了函数error typescript keyword `never` ```typescript function fail(message: string): never { throw new Error(message); } ``` or c++ attributue `noreturn` ```c++ [[ noreturn ]] void f() { throw "error"; }...