diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-29 17:30:25 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-11-29 17:30:25 +0800 |
commit | 943b86f06af58216e2f99eee2a45547080980efa (patch) | |
tree | 28875e9f660199b11b20c210de63f4e6a4442a8e /script/workspace/require-path.lua | |
parent | ac7ce0d0d0a63b1ca5d0aa87dd1229dd2166d4e0 (diff) | |
download | lua-language-server-943b86f06af58216e2f99eee2a45547080980efa.zip |
renaming also flush cache
Diffstat (limited to 'script/workspace/require-path.lua')
-rw-r--r-- | script/workspace/require-path.lua | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/script/workspace/require-path.lua b/script/workspace/require-path.lua index 968511f2..cfe89b28 100644 --- a/script/workspace/require-path.lua +++ b/script/workspace/require-path.lua @@ -251,12 +251,10 @@ function m.findUrisByRequireName(uri, name) end files.watch(function (ev, uri) - if ev == 'create' or ev == 'delete' then - for _, scp in ipairs(workspace.folders) do - scp:set('requireManager', nil) - end - scope.fallback:set('requireManager', nil) + for _, scp in ipairs(workspace.folders) do + scp:set('requireManager', nil) end + scope.fallback:set('requireManager', nil) end) config.watch(function (uri, key, value, oldValue) |