diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-10 00:37:14 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-10 00:37:14 +0800 |
commit | 0d749fff6c2b93a581a9e8d7490cff8f0c6e8b3f (patch) | |
tree | eaec6fe16a5dc8933e7be526caae785d062690b7 /script-beta/workspace | |
parent | e3637203957ba1ed9b4949bb5e1550c5dea6955e (diff) | |
download | lua-language-server-0d749fff6c2b93a581a9e8d7490cff8f0c6e8b3f.zip |
暂存
Diffstat (limited to 'script-beta/workspace')
-rw-r--r-- | script-beta/workspace/require-path.lua | 7 | ||||
-rw-r--r-- | script-beta/workspace/workspace.lua | 1 |
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) |