-
-
Notifications
You must be signed in to change notification settings - Fork 376
Closed
Labels
enhancementNew feature or requestNew feature or requestpriority.highA high priority topicA high priority topic
Description
Is it possible to generate separated suggestions on each function name with different params?
I also tried @overload but it works the same way with only one suggestion.
How definitions look:
---Creates a new zero vector with all components set to 0.
---@return vector4 new zero vector
function vmath.vector4() end
---Creates a new vector with all components set to the
---supplied scalar value.
---@param n number scalar value to splat
---@return vector4 new vector
function vmath.vector4(n) end
---Creates a new vector with all components set to the
---corresponding values from the supplied vector. I.e.
---This function creates a copy of the given vector.
---@param v1 vector4 existing vector
---@return vector4 new vector
function vmath.vector4(v1) end
---Creates a new vector with the components set to the
---supplied values.
---@param x number x coordinate
---@param y number y coordinate
---@param z number z coordinate
---@param w number w coordinate
---@return vector4 new vector
function vmath.vector4(x, y, z, w) end
How it works in VSCode with lua-language-server:
On completion it always paste the first definition that have more than zero params, vmath.vector4(n: number)
.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpriority.highA high priority topicA high priority topic