diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-02-04 17:02:06 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-02-04 17:02:06 +0800 |
commit | ea009881054fe774a59f440db8da15ce0425a464 (patch) | |
tree | 46ad5a3b1ef0f86a44c940c4efbe4650b39b1b50 /script/files.lua | |
parent | 6e7c082aa3e1011cdecd1761f7d04eabc0e2b8ba (diff) | |
download | lua-language-server-ea009881054fe774a59f440db8da15ce0425a464.zip |
fix runtime errors
Diffstat (limited to 'script/files.lua')
-rw-r--r-- | script/files.lua | 7 |
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 |