vscode-wow-api icon indicating copy to clipboard operation
vscode-wow-api copied to clipboard

xpcall arguments

Open mrbuds opened this issue 2 years ago • 1 comments

In 5.1 xpcall has 2 arguments, optionals were added in 5.2 WoW use 5.2 xpcall, i don't know if something can be done about it with vscode-wow-api

mrbuds avatar May 20 '22 02:05 mrbuds

I documented it as this but I don't know how to replace the definition from sumneko, will have to ask

---@param f function
---@param err function
---@vararg any
---@return boolean status
---@return ...
function xpcall(f, err, ...) end

image

Ketho avatar May 20 '22 03:05 Ketho

Should be fixed by replacing the LuaLS xpcall in 0.15.0 https://github.com/Ketho/vscode-wow-api/blob/2ae75ed53667b7dae7cf23840b066aca6d505029/Annotations/Lua/basic.lua#L338

Ketho avatar Aug 02 '24 16:08 Ketho