summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-12-24 17:20:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-12-24 17:20:27 +0800
commit38a2f5ae4e7e5a5ba48289db6a2972e15d3d53cf (patch)
tree281d4acb7ab88d2751b71f8286d4a0b0c9f8bbf1 /test/crossfile
parentef6c3fe05addbd299e4fc6e45cec94a83886c18f (diff)
downloadlua-language-server-38a2f5ae4e7e5a5ba48289db6a2972e15d3d53cf.zip
update
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/definition.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua
index 8cf6234f..ad26e96f 100644
--- a/test/crossfile/definition.lua
+++ b/test/crossfile/definition.lua
@@ -872,9 +872,9 @@ print(t.<?x?>)
}
}
-local originRuntimePath = config.get 'Lua.runtime.path'
+local originRuntimePath = config.get(nil, 'Lua.runtime.path')
-config.set('Lua.runtime.path', {
+config.set(nil, 'Lua.runtime.path', {
'./?.lua'
})
TEST {
@@ -895,7 +895,7 @@ print(t.<?x?>)
}
}
-config.set('Lua.runtime.path', {
+config.set(nil, 'Lua.runtime.path', {
'/home/?.lua'
})
TEST {
@@ -916,8 +916,8 @@ print(t.<?x?>)
}
}
-config.set('Lua.runtime.pathStrict', true)
-config.set('Lua.runtime.path', {
+config.set(nil, 'Lua.runtime.pathStrict', true)
+config.set(nil, 'Lua.runtime.path', {
'./?.lua'
})
TEST {
@@ -938,7 +938,7 @@ print(t.<?x?>)
}
}
-config.set('Lua.runtime.path', {
+config.set(nil, 'Lua.runtime.path', {
'/home/?.lua'
})
TEST {
@@ -959,5 +959,5 @@ print(t.<?x?>)
}
}
-config.set('Lua.runtime.pathStrict', false)
-config.set('Lua.runtime.path', originRuntimePath)
+config.set(nil, 'Lua.runtime.pathStrict', false)
+config.set(nil, 'Lua.runtime.path', originRuntimePath)