summaryrefslogtreecommitdiff
path: root/server-beta/src/proto/proto.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-08 11:09:58 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-08 11:09:58 +0800
commitd2b9dee8ce0ae345e4efd43c112bb3efd4071888 (patch)
tree125564af4ce2685d2495352e26e0230f40f79a66 /server-beta/src/proto/proto.lua
parenta6930417f3da299d4f15f4404b6d3dd900ec38f9 (diff)
downloadlua-language-server-d2b9dee8ce0ae345e4efd43c112bb3efd4071888.zip
语法错误诊断
Diffstat (limited to 'server-beta/src/proto/proto.lua')
-rw-r--r--server-beta/src/proto/proto.lua6
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