1

Refresh generated neovim config

This commit is contained in:
2024-08-15 13:01:03 +02:00
parent 64b51cf53a
commit f5af8e2b28
1836 changed files with 38979 additions and 31094 deletions

View File

@ -87,22 +87,6 @@ local function getThenable(o, typ)
return thenCall
end
---@param err any
---@return PromiseAsyncError
local function buildError(err)
local o = errFactory.new(err)
local level = 4
local value
local thread = coroutine.running()
repeat
value = errFactory.format(thread, level, shortSrc)
level = level + 1
o:push(value)
until not value
table.remove(o.queue)
return o
end
local resolvePromise, rejectPromise
---@param promise Promise
@ -139,7 +123,10 @@ local function handleQueue(promise)
return func(result)
end, function(errmsg)
if type(errmsg) == 'string' then
newPromise.err = buildError(errmsg)
-- pop xpcall stack
newPromise.err = errFactory:new(errmsg)
:buildStack(3, shortSrc, true)
return tostring(newPromise.err)
end
return errmsg
end)
@ -194,7 +181,10 @@ local function wrapExecutor(promise, executor, self)
end
end, function(errmsg)
if type(errmsg) == 'string' then
promise.err = buildError(errmsg)
-- pop xpcall stack
promise.err = errFactory:new(errmsg)
:buildStack(3, shortSrc, true)
return tostring(promise.err)
end
return errmsg
end)
@ -212,7 +202,7 @@ local function handleRejection(promise)
promise.needHandleRejection = nil
local err = promise.err
if not err then
err = errFactory.new(promise.result)
err = errFactory:new(promise.result)
end
err:unshift('UnhandledPromiseRejection with the reason:')
error(err)