summaryrefslogtreecommitdiff
path: root/script/workspace/scope.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/workspace/scope.lua')
-rw-r--r--script/workspace/scope.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/script/workspace/scope.lua b/script/workspace/scope.lua
index 258f929c..85190f25 100644
--- a/script/workspace/scope.lua
+++ b/script/workspace/scope.lua
@@ -76,10 +76,14 @@ end
---@class scope.manager
local m = {}
----@type scope[]
-m.folders = {}
-m.override = createScope 'override'
-m.fallback = createScope 'fallback'
+function m.reset()
+ ---@type scope[]
+ m.folders = {}
+ m.override = createScope 'override'
+ m.fallback = createScope 'fallback'
+end
+
+m.reset()
---@param uri uri
---@return scope