summaryrefslogtreecommitdiff
path: root/server/src/service.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-06-24 17:16:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-06-24 17:16:13 +0800
commit264b0cc598efee9e87132d96596985a09d085798 (patch)
tree027b70ed8126f03c054d89b818791333a1a74689 /server/src/service.lua
parent0e3c22455e4398541471351291522b200417e31c (diff)
downloadlua-language-server-264b0cc598efee9e87132d96596985a09d085798.zip
统一使用 ignore 语法吧
Diffstat (limited to 'server/src/service.lua')
-rw-r--r--server/src/service.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index 3dfcb5a5..87b9908e 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -275,6 +275,9 @@ end
---@param buf string
---@param compiled table
function mt:readLibrary(uri, path, buf, compiled)
+ if not self:isLua(uri) then
+ return
+ end
if not self:checkReadFile(uri, path, buf) then
return
end