diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-03-30 16:10:53 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-03-30 16:10:53 +0800 |
commit | 3b0440451a5ae78c25f17195db486a8f374e327f (patch) | |
tree | 521482389cc454424a90f4000fa3e9ee9014d18f /script/service.lua | |
parent | 41abc0ec8ce9d92717f4ed2bf3cc04bfc890f9e7 (diff) | |
download | lua-language-server-3b0440451a5ae78c25f17195db486a8f374e327f.zip |
#150 修正没有正确识别已打开文件的bug
Diffstat (limited to 'script/service.lua')
-rw-r--r-- | script/service.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/service.lua b/script/service.lua index cf394b9d..88e8448c 100644 --- a/script/service.lua +++ b/script/service.lua @@ -273,12 +273,12 @@ function mt:readText(uri, path, buf, compiled) log.debug('Read failed due to not lua:', uri) return end - if not self._files:isOpen() and self:isIgnored(uri) then + if not self._files:isOpen(uri) and self:isIgnored(uri) then log.debug('Read failed due to ignored:', uri) return end local text = buf or io.load(path) - if not self._files:isOpen() and not self:checkReadFile(uri, path, text) then + if not self._files:isOpen(uri) and not self:checkReadFile(uri, path, text) then log.debug('Read failed due to check failed:', uri) return end |