summaryrefslogtreecommitdiff
path: root/server-beta/src/proto/proto.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-08 13:46:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-08 13:46:50 +0800
commitf53b68d739ab7aad9c6aae2b902f34fbb8fc97ea (patch)
treeb98df4754836a32e9896bc60095d5f925cb5852f /server-beta/src/proto/proto.lua
parent26d718bba628a337ffeea9e20f2b9af7581af1d7 (diff)
downloadlua-language-server-f53b68d739ab7aad9c6aae2b902f34fbb8fc97ea.zip
整理代码
Diffstat (limited to 'server-beta/src/proto/proto.lua')
-rw-r--r--server-beta/src/proto/proto.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server-beta/src/proto/proto.lua b/server-beta/src/proto/proto.lua
index e851610a..1d8160c1 100644
--- a/server-beta/src/proto/proto.lua
+++ b/server-beta/src/proto/proto.lua
@@ -52,7 +52,7 @@ function m.notify(name, params)
io.stdout:write(buf)
end
-function m.request(name, params)
+function m.awaitRequest(name, params)
local id = reqCounter()
local buf = jsonrpc.encode {
id = id,
@@ -112,7 +112,7 @@ function m.listen()
subprocess.filemode(io.stdout, 'b')
io.stdin:setvbuf 'no'
io.stdout:setvbuf 'no'
- pub.syncTask('loadProto')
+ pub.task('loadProto')
end
return m