summaryrefslogtreecommitdiff
path: root/script/files.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-04 17:02:06 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-04 17:02:06 +0800
commitea009881054fe774a59f440db8da15ce0425a464 (patch)
tree46ad5a3b1ef0f86a44c940c4efbe4650b39b1b50 /script/files.lua
parent6e7c082aa3e1011cdecd1761f7d04eabc0e2b8ba (diff)
downloadlua-language-server-ea009881054fe774a59f440db8da15ce0425a464.zip
fix runtime errors
Diffstat (limited to 'script/files.lua')
-rw-r--r--script/files.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/script/files.lua b/script/files.lua
index 2e0c2666..e233846c 100644
--- a/script/files.lua
+++ b/script/files.lua
@@ -229,8 +229,11 @@ function m.remove(uri)
if not file then
return
end
- m.fileMap[uri] = nil
- m._pairsCache = nil
+ m.fileMap[uri] = nil
+ m.astMap[uri] = nil
+ m.linesMap[uri] = nil
+ m.originLinesMap[uri] = nil
+ m._pairsCache = nil
m.flushFileCache(uri)
m.fileCount = m.fileCount - 1