summaryrefslogtreecommitdiff
path: root/server-beta/src/pub/report.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/pub/report.lua
parenta6930417f3da299d4f15f4404b6d3dd900ec38f9 (diff)
downloadlua-language-server-d2b9dee8ce0ae345e4efd43c112bb3efd4071888.zip
语法错误诊断
Diffstat (limited to 'server-beta/src/pub/report.lua')
-rw-r--r--server-beta/src/pub/report.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/server-beta/src/pub/report.lua b/server-beta/src/pub/report.lua
index d73a4e69..edd3ee0e 100644
--- a/server-beta/src/pub/report.lua
+++ b/server-beta/src/pub/report.lua
@@ -1,5 +1,5 @@
-local pub = require 'pub.pub'
-local task = require 'task'
+local pub = require 'pub.pub'
+local await = require 'await'
pub.on('log', function (params, brave)
log.raw(brave.id, params.level, params.msg, params.src, params.line)
@@ -11,7 +11,7 @@ end)
pub.on('proto', function (params)
local proto = require 'proto'
- task.create(function ()
+ await.create(function ()
if params.method then
proto.doMethod(params)
else