summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-21 14:31:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-21 14:31:27 +0800
commitb62e126c9cdcf2fbe12ab8244db735697eb59f49 (patch)
treee3c51e1865b2fce1b1c9153a4422625dc7e4ec56 /script/provider
parent170d9b5c7af761a2507727e4a9e303187a0f9120 (diff)
downloadlua-language-server-b62e126c9cdcf2fbe12ab8244db735697eb59f49.zip
cleanup
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/provider.lua9
1 files changed, 0 insertions, 9 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 57126bff..5b1200cc 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -82,9 +82,6 @@ local function updateConfig()
workspace.reload()
semantic.refresh()
end
- if not util.equal(oldConfig.intelliSense, newConfig.intelliSense) then
- files.flushCache()
- end
if newConfig.completion.enable then
completion.enable()
@@ -304,7 +301,6 @@ proto.on('textDocument/hover', function (params)
if not files.exists(uri) then
return nil
end
- vm.flushCache()
local offset = files.offsetOfWord(uri, params.position)
local hover = core.byUri(uri, offset)
if not hover then
@@ -331,7 +327,6 @@ proto.on('textDocument/definition', function (params)
if not files.exists(uri) then
return nil
end
- vm.flushCache()
local offset = files.offsetOfWord(uri, params.position)
local result = core(uri, offset)
if not result then
@@ -361,7 +356,6 @@ proto.on('textDocument/references', function (params)
if not files.exists(uri) then
return nil
end
- vm.flushCache()
local offset = files.offsetOfWord(uri, params.position)
local result = core(uri, offset)
if not result then
@@ -383,7 +377,6 @@ proto.on('textDocument/documentHighlight', function (params)
if not files.exists(uri) then
return nil
end
- vm.flushCache()
local offset = files.offsetOfWord(uri, params.position)
local result = core(uri, offset)
if not result then
@@ -407,7 +400,6 @@ proto.on('textDocument/rename', function (params)
if not files.exists(uri) then
return nil
end
- vm.flushCache()
local offset = files.offsetOfWord(uri, params.position)
local result = core.rename(uri, offset, params.newName)
if not result then
@@ -433,7 +425,6 @@ proto.on('textDocument/prepareRename', function (params)
if not files.exists(uri) then
return nil
end
- vm.flushCache()
local offset = files.offsetOfWord(uri, params.position)
local result = core.prepareRename(uri, offset)
if not result then