summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-12-16 17:30:37 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-12-16 17:30:37 +0800
commitab5e1b39ec6eedf3cc47c845fe0544da48e58829 (patch)
tree42fa33ae3a61c56055486b1255c976ec4a6bbb38 /test
parent8b0d3827faf0cdc967e52ddfbe043c07c0dbe6a2 (diff)
downloadlua-language-server-ab5e1b39ec6eedf3cc47c845fe0544da48e58829.zip
clean up
Diffstat (limited to 'test')
-rw-r--r--test/crossfile/definition.lua23
1 files changed, 22 insertions, 1 deletions
diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua
index b0cc232f..f44633e1 100644
--- a/test/crossfile/definition.lua
+++ b/test/crossfile/definition.lua
@@ -869,10 +869,10 @@ print(t.<?x?>)
}
local originRuntimePath = config.get 'Lua.runtime.path'
+
config.set('Lua.runtime.path', {
'./?.lua'
})
-
TEST {
{
path = 'a.lua',
@@ -891,4 +891,25 @@ print(t.<?x?>)
}
}
+--config.set('Lua.runtime.path', {
+-- '/home/?.lua'
+--})
+--TEST {
+-- {
+-- path = '/home/a.lua',
+-- content = [[
+--return {
+-- <!x!> = 1,
+--}
+--]],
+-- },
+-- {
+-- path = 'b.lua',
+-- content = [[
+--local t = require 'a'
+--print(t.<?x?>)
+-- ]]
+-- }
+--}
+
config.set('Lua.runtime.path', originRuntimePath)