lua-language-server
lua-language-server copied to clipboard
A language server that offers Lua language support - programmed in Lua
**Describe the bug** Its seems like operators can only be defined one way? I want number * Vec3 to be Vec3. Am I missing something? **To Reproduce** ```lua --- @class...
`@generic` seems to be behaving weirdly when being used in a class. ```lua ---@class Array: { [integer]: T } ---@type Array local arr = {} -- correctly warns that I...
I've been looking to add more python style function calls where you can mix both have positional arguments and keyword arguments. It almost works already 😄 except type checking is...
If I have any class, and I get a warning like the following on a function that is being given a class field as a parameter (e.g., `tohex(class_name.class_field)`): ``` Cannot...
Latest Vscode, Latest Master ```lua ---@generic V: string ---@param list V[] ---@return {[V]: true} util.list_to_map = function(list) local map = {} for k, value in pairs(list) do map[value] = true...
At present a variable's nil check is recognised as meaning the variable can't have a type of nil within the code block, but this doesn't work for object fields. Setup...
Vscode / Extension 3.5 Initially I tried to use .luarc.json file per workspace but everything is too similiar and one change means changing them for all Current Layout Root/Folder/WorkspaceA Root/Folder/WorkspaceB...
As per the title meta/spell is not included in vscode releases. Additionally a setting to disable the spell meta, and a setting for paths to a user dictionary if these...
If we know enough information about the type passed into `unpack`, we could infer the unpacked values as a result. For example:  We know that both `x` and `y`...
Infers `a` and `aa` correctly but not the rest ```lua ---@diagnostic disable: codestyle-check, spell-check, unused-local ---@alias AnyChild A|B|C ---@class PARENT local PARENT = {} ---@class A: PARENT local A =...