summaryrefslogtreecommitdiff
path: root/script/files.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-22 17:41:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-22 17:41:25 +0800
commitc951f3472628bdccdbf13a6bd95bc36cc93523fd (patch)
tree1b54015d40483b573e981678f06859e3e709c929 /script/files.lua
parent32aa2dac835a0c74b82b19d83d9fd06be7a947ce (diff)
downloadlua-language-server-c951f3472628bdccdbf13a6bd95bc36cc93523fd.zip
update
Diffstat (limited to 'script/files.lua')
-rw-r--r--script/files.lua6
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