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

函数参数设置为 alias[] or enum[] 类型, 在调用时无提示

Open ChNopx opened this issue 1 year ago • 0 comments

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?

Other

Expected Behaviour

---@alias 测试类型 "1"|"2"

---@alias 测试类型[] local function 测试(参数) end

测试({"这里提示值","1"})

---@type 测试类型[] local a = {"这里提示值","2"}

Actual Behaviour

---@alias 测试类型 "1"|"2"

---@alias 测试类型[] local function 测试(参数) end

测试({"函数参数类型","在这里没有提示"})

---@type 测试类型[] local a = {"标注type的没BUG","可以正常体质"}

Reproduction steps

复制上面内容即可复现测试

Additional Notes

No response

Log File

No response

ChNopx avatar Mar 16 '24 11:03 ChNopx