diff options
Diffstat (limited to 'script-beta/provider')
-rw-r--r-- | script-beta/provider/provider.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/script-beta/provider/provider.lua b/script-beta/provider/provider.lua index c892bfee..46136f54 100644 --- a/script-beta/provider/provider.lua +++ b/script-beta/provider/provider.lua @@ -18,6 +18,7 @@ local lang = require 'language' local function updateConfig() local diagnostics = require 'provider.diagnostic' + local vm = require 'vm' local configs = proto.awaitRequest('workspace/configuration', { items = { { @@ -65,6 +66,10 @@ local function updateConfig() if not util.equal(oldConfig.luadoc, newConfig.luadoc) then files.flushCache() end + if not util.equal(oldConfig.intelliSense, newConfig.intelliSense) then + files.flushCache() + vm.setSearchDepth(newConfig.intelliSense.searchDepth) + end if newConfig.completion.enable then completion.enable() |