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

Feature Request: Deprecate fields and parameters

Open Rouneq opened this issue 2 years ago • 3 comments

Could really use a clean way to mark specific field and parameters as deprecated. Currently I'm adding @**[DEPRECATED]** to the start of the comments for the field/parameter, but this doesn't change the name with a strike-through (as happens with functions).

Rouneq avatar Jul 10 '22 14:07 Rouneq

You can use ---@deprecated for field. But there is no way for parameter.

sumneko avatar Sep 19 '22 09:09 sumneko

You can use ---@deprecated for field.

how 🤔 im trying

---@class foo
---@deprecated
---@field example string
foo = {}

but it does not work

johannesrld avatar Nov 13 '23 06:11 johannesrld

Would like to see this as well.

bavalpey avatar Feb 07 '24 01:02 bavalpey