diff options
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 9 |
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 |