diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-11-20 11:07:45 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-11-20 11:07:45 +0800 |
commit | 2f75dac6aba312260abb74afce64b1527d2ecea0 (patch) | |
tree | 8f436961bb91ef8cf79eaa2459437a1b7e55bd8f /src/lsp.lua | |
parent | 1e9c157d8fbe7b4952211c304a491309412a55b0 (diff) | |
download | lua-language-server-2f75dac6aba312260abb74afce64b1527d2ecea0.zip |
修正报错
Diffstat (limited to 'src/lsp.lua')
-rw-r--r-- | src/lsp.lua | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/lsp.lua b/src/lsp.lua index cb1b9a26..891557c6 100644 --- a/src/lsp.lua +++ b/src/lsp.lua @@ -118,14 +118,7 @@ function mt:loadText(uri) return obj.text end -function mt:removeText(uri, version) - local obj = self._file[uri] - if not obj then - return - end - if obj.version >= version then - return - end +function mt:removeText(uri) self._file[uri] = nil end |