We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Visual Studio Code Extension (sumneko.lua)
Windows
Hover
In this code snippet I expect that either base class A or both A|B would be displayed as function parameter and return in hover:
A
A|B
---@class A ---@class B : A ---@param a A|B ---@return A|B function f(a) end
However, only derived class B is displayed as types of both parameter and return.
B
Paste code snippet in a file and display hover of the function definition
It may be an unusual case, but sometimes such argument type specificity is beneficial.
VS Code extension version: 3.5.3
No response
The text was updated successfully, but these errors were encountered:
bae4d2e
No branches or pull requests
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?
Hover
Expected Behaviour
In this code snippet I expect that either base class
A
or bothA|B
would be displayed as function parameter and return in hover:Actual Behaviour
However, only derived class
B
is displayed as types of both parameter and return.Reproduction steps
Paste code snippet in a file and display hover of the function definition
Additional Notes
It may be an unusual case, but sometimes such argument type specificity is beneficial.
VS Code extension version: 3.5.3
Log File
No response
The text was updated successfully, but these errors were encountered: