diff options
-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) |