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

@depracted with assignment, Also @deprecated with message , also wrong type in completion #1057

Closed
Nexela opened this issue Apr 15, 2022 · 0 comments
Labels
bug Something isn't working enhancement New feature or request feat/LuaCats Annotations Related to Lua Language Server Annotations (LuaCats)

Comments

@Nexela
Copy link
Contributor

Nexela commented Apr 15, 2022

Describe the bug
Strike-through/Deprecated message isn't displayed when using = assignment
Tested with Version 2.6.8

This is probably more of an Enhancement than a bug

To Reproduce

local a = {}

--- @return boolean
function a.func() return true end

local b = {}

--- @type function OR @overload fun():boolean
--- @deprecated This message should also display when hovering
b.func = a.func
-- hover func above correctly shows linked function

local test = b.fun
-- completion list shows b as property (not function) 
-- completion list correctly shows deprecated ~~strike-through~~

local test = b.func()
-- hover does not show deprecated.
-- function does have visible ~~strike-through~~ on it.

Expected behavior
local test = b.func()
Hover should also show Deprecated As well as the message in @deprecated line

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: Ubuntu
  • Client: VSCode
@sumneko sumneko added bug Something isn't working enhancement New feature or request feat/LuaCats Annotations Related to Lua Language Server Annotations (LuaCats) labels Apr 15, 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 enhancement New feature or request feat/LuaCats Annotations Related to Lua Language Server Annotations (LuaCats)
Projects
None yet
Development

No branches or pull requests

2 participants