summaryrefslogtreecommitdiff
path: root/script-beta/workspace
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-10 00:37:14 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-10 00:37:14 +0800
commit0d749fff6c2b93a581a9e8d7490cff8f0c6e8b3f (patch)
treeeaec6fe16a5dc8933e7be526caae785d062690b7 /script-beta/workspace
parente3637203957ba1ed9b4949bb5e1550c5dea6955e (diff)
downloadlua-language-server-0d749fff6c2b93a581a9e8d7490cff8f0c6e8b3f.zip
暂存
Diffstat (limited to 'script-beta/workspace')
-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)