summaryrefslogtreecommitdiff
path: root/server/src/service.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-05-20 21:30:07 +0800
committersumneko <sumneko@hotmail.com>2019-05-20 21:30:07 +0800
commitbb5ec0a8fc13ff9c6d12e2a74b75b15705774d0d (patch)
tree996cea667a5c632eac1318f6ef77c4c8c16039b0 /server/src/service.lua
parent84dd2f203cde9499c99dcc31b2aa1188d2fa5778 (diff)
downloadlua-language-server-bb5ec0a8fc13ff9c6d12e2a74b75b15705774d0d.zip
暂存一下
Diffstat (limited to 'server/src/service.lua')
-rw-r--r--server/src/service.lua10
1 files changed, 2 insertions, 8 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index 9cab6946..ee2965a9 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -115,13 +115,6 @@ function mt:clearDiagnostics(uri)
self._needDiagnostics[uri] = nil
end
-function mt:read(mode)
- if not self._input then
- return nil
- end
- return self._input(mode)
-end
-
function mt:needCompile(uri, compiled, mode)
self._needDiagnostics[uri] = true
if self._needCompile[uri] then
@@ -271,7 +264,8 @@ function mt:readText(uri, path, buf, compiled)
end
function mt:removeText(uri)
- if not self._file[uri] then
+ local obj = self._file[uri]
+ if not obj then
return
end
self._fileCount = self._fileCount - 1