diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-22 17:41:25 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-09-22 17:41:25 +0800 |
commit | c951f3472628bdccdbf13a6bd95bc36cc93523fd (patch) | |
tree | 1b54015d40483b573e981678f06859e3e709c929 /script/files.lua | |
parent | 32aa2dac835a0c74b82b19d83d9fd06be7a947ce (diff) | |
download | lua-language-server-c951f3472628bdccdbf13a6bd95bc36cc93523fd.zip |
update
Diffstat (limited to 'script/files.lua')
-rw-r--r-- | script/files.lua | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/script/files.lua b/script/files.lua index a3595a4f..25f07ca2 100644 --- a/script/files.lua +++ b/script/files.lua @@ -35,8 +35,6 @@ m.assocMatcher = nil m.globalVersion = 0 m.fileCount = 0 m.astCount = 0 -m.linesMap = setmetatable({}, { __mode = 'v' }) -m.originLinesMap = setmetatable({}, { __mode = 'v' }) m.astMap = {} -- setmetatable({}, { __mode = 'v' }) --- 打开文件 @@ -160,8 +158,6 @@ function m.setText(uri, text, isTrust, instance) file.trusted = isTrust file.originText = text file.words = nil - m.linesMap[uri] = nil - m.originLinesMap[uri] = nil m.astMap[uri] = nil file.cache = {} file.cacheActiveTime = math.huge @@ -346,7 +342,6 @@ function m.removeAll() m.fileCount = m.fileCount - 1 m.fileMap[uri] = nil m.astMap[uri] = nil - m.linesMap[uri] = nil m.onWatch('remove', uri) end end @@ -366,7 +361,6 @@ function m.removeAllClosed() m.fileCount = m.fileCount - 1 m.fileMap[uri] = nil m.astMap[uri] = nil - m.linesMap[uri] = nil m.onWatch('remove', uri) end end |