LuaLS / lua-language-server

A language server that offers Lua language support - programmed in Lua
https://luals.github.io
MIT License
3.33k stars 316 forks source link

Question: is there any way to specify version of the platform? #2558

Open ochaton opened 7 months ago

ochaton commented 7 months ago

Hello, we heavily use annotations for our database https://tarantool.io/ and we add new functions and parameters with each minor release. Is there any legal way to specify version of the platform (like you use @version for Lua) since from which the method (or option of the class) is available?

For example:

---@meta

---@since 2.10.0
---@param key string
---@param value any
function box.broadcast(key, value) end

I think that openresty have the same issue, don't they?

vaintrub commented 5 months ago

Up please!