summaryrefslogtreecommitdiff
path: root/script/service.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-07-21 19:36:55 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-07-21 19:36:55 +0800
commit100bea883a79b4d57e413c7eb2dfcf7b112b2ec5 (patch)
treea3f8585ce2b04c3a34d81369b4ab078688b06ba3 /script/service.lua
parent7a9f26241cec312c0c7930bcc71ca4f70a31facc (diff)
downloadlua-language-server-100bea883a79b4d57e413c7eb2dfcf7b112b2ec5.zip
给单开文件加个假的工作目录
Diffstat (limited to 'script/service.lua')
-rw-r--r--script/service.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/script/service.lua b/script/service.lua
index 208a538f..b5db8080 100644
--- a/script/service.lua
+++ b/script/service.lua
@@ -784,18 +784,17 @@ function mt:_loadProto()
while true do
local ok, protoStream = self._proto:pop()
if not ok then
- goto CONTINUE
+ break
end
local suc, proto = xpcall(json.decode, log.error, protoStream)
if not suc then
- goto CONTINUE
+ break
end
if proto.method then
self:_doProto(proto)
else
rpc:recieve(proto)
end
- ::CONTINUE::
end
end