lua-language-server
lua-language-server copied to clipboard
A language server that offers Lua language support - programmed in Lua
**Describe the bug** `textDocument/references` is returning unexpected results when used in a specific situation (more about that below). **To Reproduce** 1. Paste the following snippet in a lua file ```lua...
**Describe the bug** vscode has a handy feature which formats the code as we type, it doesnt seem to work with Lua. **To Reproduce** Steps to reproduce the behavior: 1....
**Describe the bug** 我们项目有很多UI脚本,这些脚本只会挂在UI上,不会在项目其他代码中引用,所以不想让它成为一个单独的类出现在智能提示中, 之前使用`---@type 父类`来标记它,这样既能使用它父类中的方法,又不会出现在智能提示中,但是在3.4的版本中, 这些脚本的字段不能追踪了,写起来不太方便. 之前3.2还是3.1的版本都是可以的 **To Reproduce**  如上图定义一个脚本类,方法`Init`中添加了一个字段 `_nameInput`,在`TestCase`方法中没有`_nameInput`的智能提示. 鼠标防在类名上又显示有这个字段,如下图所示: 
In World of Warcraft we have a [Frame](https://wowpedia.fandom.com/wiki/Widget_API#Frame) class and a [AceGUIFrame](https://www.wowace.com/projects/ace3/pages/ace-gui-3-0-widgets#title-4-2) class, but the problem is they are created with `CreateFrame("Frame")` and `AceGUI:Create("Frame")` respectively. How would I get `AceGUI:Create("Frame")`...
I have some custom types defined and would like to make math functions accept then and return the same data types as go in. I have these custom types as...
v3.4.2 Given the following function declaration/annotation: ``` ---Write output to the console ---@param severity loggingSeverity ---@param message number|string|table|nil A message to display to the console; can contain formatting directives for...
Currently, if I create a class definition such as ``` ---@class Setting ---@field __isInitialized boolean @Is the setting data properly initialized ---@field value number|boolean|string @Value for the setting ---@field description...
Could really use a clean way to mark specific field and parameters as deprecated. Currently I'm adding @\*\*[DEPRECATED]\*\* to the start of the comments for the field/parameter, but this doesn't...
When using some c api's (In my case Factorio's modding api) when you retrieve a value you get one type, but you can set it with multiple different types. ```lua...
    无法通过注释把function类型转换为EffectCallback类型 试了一下@cast也不行,无法转换