diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-08 11:09:58 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-08 11:09:58 +0800 |
commit | d2b9dee8ce0ae345e4efd43c112bb3efd4071888 (patch) | |
tree | 125564af4ce2685d2495352e26e0230f40f79a66 /server-beta/src/proto/proto.lua | |
parent | a6930417f3da299d4f15f4404b6d3dd900ec38f9 (diff) | |
download | lua-language-server-d2b9dee8ce0ae345e4efd43c112bb3efd4071888.zip |
语法错误诊断
Diffstat (limited to 'server-beta/src/proto/proto.lua')
-rw-r--r-- | server-beta/src/proto/proto.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server-beta/src/proto/proto.lua b/server-beta/src/proto/proto.lua index 27ba68b8..e851610a 100644 --- a/server-beta/src/proto/proto.lua +++ b/server-beta/src/proto/proto.lua @@ -1,6 +1,6 @@ local subprocess = require 'bee.subprocess' local util = require 'utility' -local task = require 'task' +local await = require 'await' local pub = require 'pub' local jsonrpc = require 'jsonrpc' local ErrorCodes = require 'define.ErrorCodes' @@ -60,7 +60,7 @@ function m.request(name, params) params = params, } io.stdout:write(buf) - return task.wait(function (waker) + return await.wait(function (waker) m.waiting[id] = waker end) end @@ -77,7 +77,7 @@ function m.doMethod(proto) end return end - task.create(function () + await.create(function () local clock = os.clock() local ok, res = xpcall(abil, log.error, proto.params) local passed = os.clock() - clock |