diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-12-22 18:46:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-12-22 18:46:02 +0800 |
commit | 3278c8c0b54934ac61a8a98688ab94f45ba15a9b (patch) | |
tree | e7fd953c4e30842ef765e440333971fe3f5f271d /script/proto/proto.lua | |
parent | 1806600407c8bd62af96a1671b3a1c30f3839e89 (diff) | |
download | lua-language-server-3278c8c0b54934ac61a8a98688ab94f45ba15a9b.zip |
improve code-lens
Diffstat (limited to 'script/proto/proto.lua')
-rw-r--r-- | script/proto/proto.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/proto/proto.lua b/script/proto/proto.lua index 024b17e5..fda9fa01 100644 --- a/script/proto/proto.lua +++ b/script/proto/proto.lua @@ -23,6 +23,7 @@ local function logRecieve(proto) log.info('rpc recieve:', json.encode(proto)) end +---@class proto local m = {} m.ability = {} @@ -181,7 +182,7 @@ function m.doMethod(proto) m.responseErr(proto.id, proto._closeReason or define.ErrorCodes.InternalError, proto._closeMessage or res) end end - ok, res = xpcall(abil, log.error, proto.params) + ok, res = xpcall(abil, log.error, proto.params, proto.id) await.delay() end) end |