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

[v3.6.5] 函数原型列表不再包括重复定义的字段 #1826

Closed
zhu-rengong opened this issue Jan 17, 2023 · 2 comments
Closed

[v3.6.5] 函数原型列表不再包括重复定义的字段 #1826

zhu-rengong opened this issue Jan 17, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@zhu-rengong
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?

Annotations, Completion, Diagnostics/Syntax Checking

Expected Behaviour

这里有个Hook.Patch方法:
image
当时为了给重载的方法提供不同的注释,所以把Hook.Patch拆成了两块定义,即便产生了重复定义的字段,但它们仍然都会出现在声明列表内:
image

Actual Behaviour

从v3.6.4更新至v3.6.5以后,得到的是:
image

Reproduction steps

  1. Go to '...'
  2. Click '...'
  3. See error '...'

Additional Notes

No response

Log File

No response

@sumneko sumneko added the bug Something isn't working label Jan 17, 2023
@sumneko
Copy link
Collaborator

sumneko commented Jan 17, 2023

Fixed by 69b22d8

@sumneko sumneko closed this as completed Jan 17, 2023
@sumneko
Copy link
Collaborator

sumneko commented Jan 17, 2023

You need to add ---@meta in this file in next version (v3.6.6)

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