diff options
Diffstat (limited to 'script/workspace')
-rw-r--r-- | script/workspace/workspace.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua index 60078975..e4f63c35 100644 --- a/script/workspace/workspace.lua +++ b/script/workspace/workspace.lua @@ -474,11 +474,15 @@ end ---@param scp scope function m.resetFiles(scp) local cachedUris = scp:get 'cachedUris' - if not cachedUris then - return + if cachedUris then + for uri in pairs(cachedUris) do + files.resetText(uri) + end end - for uri in pairs(cachedUris) do - files.resetText(uri) + for uri in pairs(files.openMap) do + if scope.getScope(uri) == scp then + files.resetText(uri) + end end end |