summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script-beta/workspace/require-path.lua7
-rw-r--r--script-beta/workspace/workspace.lua1
2 files changed, 8 insertions, 0 deletions
diff --git a/script-beta/workspace/require-path.lua b/script-beta/workspace/require-path.lua
new file mode 100644
index 00000000..a9bd6fc0
--- /dev/null
+++ b/script-beta/workspace/require-path.lua
@@ -0,0 +1,7 @@
+local m = {}
+
+--- `aaa/bbb/ccc.lua` 与 `?.lua` 将返回 `a.b.c`
+function m.getVisiblePath(path, searcher)
+end
+
+return m
diff --git a/script-beta/workspace/workspace.lua b/script-beta/workspace/workspace.lua
index 89470beb..59a42f2b 100644
--- a/script-beta/workspace/workspace.lua
+++ b/script-beta/workspace/workspace.lua
@@ -15,6 +15,7 @@ m.ignoreMatcher = nil
m.preloadVersion = 0
m.uri = ''
m.path = ''
+m.requireCache = {}
--- 初始化工作区
function m.init(name, uri)