Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

表参数提示在3.6.x版本失效了 #1704

Closed
Philofallever opened this issue Nov 16, 2022 · 2 comments
Closed

表参数提示在3.6.x版本失效了 #1704

Philofallever opened this issue Nov 16, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@Philofallever
Copy link

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?

Completion

Expected Behaviour

正确提示表参数字段,如3.5.6版本所示

Actual Behaviour

表参数提示在3.6.x版本失效了

image

Reproduction steps

如图

Additional Notes

111111111

Log File

1111111111

@sumneko
Copy link
Collaborator

sumneko commented Nov 16, 2022

请提供演示代码,包含函数定义部分的

@sumneko sumneko added the Info Needed More information is required label Nov 16, 2022
@Philofallever
Copy link
Author

Philofallever commented Nov 16, 2022

请提供演示代码,包含函数定义部分的

@sumneko 之前在公司,bug信息写太简略了,不好意思

-- a.lua 文件

---@class TestMiniGames
local MiniGames = {}

---玩射鸟(damage:炮弹正中伤害,必须是偶数,默认为2,偏斜命中伤害为其一半;cout:炮弹数量,默认为3;health:怪物生命值)
---@param gameParam {damage: integer, count: integer, health:integer}
function MiniGames:PlayShootBird(gameParam)

end

return MiniGames

-- b.lua 文件

---@type TestMiniGames
local miniGame

miniGame:PlayShootBird({dam})

最新版补全提示如下:
image


1.5.6版本补全提示如下:
image
image

@sumneko sumneko added bug Something isn't working and removed Info Needed More information is required labels Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants