lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

A language server that offers Lua language support - programmed in Lua

Results 496 lua-language-server issues
Sort by recently updated
recently updated
newest added

**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...

enhancement

**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....

enhancement
formatter

**Describe the bug** 我们项目有很多UI脚本,这些脚本只会挂在UI上,不会在项目其他代码中引用,所以不想让它成为一个单独的类出现在智能提示中, 之前使用`---@type 父类`来标记它,这样既能使用它父类中的方法,又不会出现在智能提示中,但是在3.4的版本中, 这些脚本的字段不能追踪了,写起来不太方便. 之前3.2还是3.1的版本都是可以的 **To Reproduce** ![image](https://user-images.githubusercontent.com/15180187/177989140-e9b4b8fa-605d-4af1-babc-6ce0df504f27.png) 如上图定义一个脚本类,方法`Init`中添加了一个字段 `_nameInput`,在`TestCase`方法中没有`_nameInput`的智能提示. 鼠标防在类名上又显示有这个字段,如下图所示: ![image](https://user-images.githubusercontent.com/15180187/177989317-15f9ffa9-f68f-4f83-ac37-9663f0836050.png)

question

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")`...

enhancement

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...

enhancement

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...

question

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...

enhancement
LLS Annotations

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...

enhancement
feat/LuaCats Annotations

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...

enhancement

![000](https://user-images.githubusercontent.com/22164766/177721220-0598cb2d-6d14-47d7-9772-c44c17de342e.png) ![111](https://user-images.githubusercontent.com/22164766/177721243-bdb559aa-b907-40fb-b1df-87e706f0bdca.png) ![222](https://user-images.githubusercontent.com/22164766/177721261-9cf7cc1e-2764-4572-b73e-9307e0832a62.png) ![333](https://user-images.githubusercontent.com/22164766/177721276-cc6964fa-d41f-417f-8096-c7921411f66a.png) 无法通过注释把function类型转换为EffectCallback类型 试了一下@cast也不行,无法转换

question