diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-08 13:46:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-08 13:46:50 +0800 |
commit | f53b68d739ab7aad9c6aae2b902f34fbb8fc97ea (patch) | |
tree | b98df4754836a32e9896bc60095d5f925cb5852f /server-beta/src/proto/proto.lua | |
parent | 26d718bba628a337ffeea9e20f2b9af7581af1d7 (diff) | |
download | lua-language-server-f53b68d739ab7aad9c6aae2b902f34fbb8fc97ea.zip |
整理代码
Diffstat (limited to 'server-beta/src/proto/proto.lua')
-rw-r--r-- | server-beta/src/proto/proto.lua | 4 |
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 |