-
-
Notifications
You must be signed in to change notification settings - Fork 391
Open
Labels
enhancementNew feature or requestNew feature or requestfeat/LuaCats AnnotationsRelated to Lua Language Server Annotations (LuaCats)Related to Lua Language Server Annotations (LuaCats)
Description
Allow the ability to specify a default value for optional params.
Example:
--- @param a number
--- @param b=[32] number
--- @param c=[' '] string
--- @param d=[] any
--- @param e=[MyClass.subclass] MyClass
--- @return boolean
local function test(a, b, c. d, e
endhovering over test could show
function test(a: number, b=32: number, c=' ': string, d=nil: any, e=MyClass.subclass: MyClass)
Yamsha75, mosauter, BribeFromTheHive, carsakiller and vallode
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestfeat/LuaCats AnnotationsRelated to Lua Language Server Annotations (LuaCats)Related to Lua Language Server Annotations (LuaCats)