WilliamVenner / vscode-glua-enhanced

👨‍💻 Garry's Mod Lua VSCode Extension for enhanced auto completion, wiki integration, snippets, color palette, and much more...
https://marketplace.visualstudio.com/items?itemName=venner.vscode-glua-enhanced
GNU General Public License v3.0
412 stars 10 forks source link

Function arguments panel doesn't show for defined functions #9

Closed shadow7483147 closed 3 years ago

shadow7483147 commented 3 years ago

For example, concommand.Add. This function, when listing the arguments shows a function argument that correctly shows the arguments passed to that function when using function(ply,cmd,args,argStr) However, when using a function that is already defined, (eg, local function TestFunc(ply,cmd)) it won't show what arguments are being passed to TestFunc()

edit: this isn't even proper lua apparently. you can't pass Func(ply) as the argument for concommand.Add, it has to be function(ply) Func(ply) end or else attempt to index local 'ply' (a nil value) (scoping, I'm assuming.)