summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-01-04 20:59:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-01-04 20:59:09 +0800
commit74c45cc113e0f6cc1bb0bbf4963c490312cbfbe2 (patch)
tree093cf553943d2bcd94afaf559b53bab381323a05 /test
parente1acf151c0da1aa01c39d10d0fab885f4c98f6cd (diff)
parentdb575065af7c0fab76f6d3d7964ae84244757c91 (diff)
downloadlua-language-server-74c45cc113e0f6cc1bb0bbf4963c490312cbfbe2.zip
Merge commit 'db575065af7c0fab76f6d3d7964ae84244757c91' into multi-workspace
Diffstat (limited to 'test')
-rw-r--r--test/crossfile/references.lua19
-rw-r--r--test/rename/init.lua3
2 files changed, 20 insertions, 2 deletions
diff --git a/test/crossfile/references.lua b/test/crossfile/references.lua
index ec02eef7..18e9c5f9 100644
--- a/test/crossfile/references.lua
+++ b/test/crossfile/references.lua
@@ -183,3 +183,22 @@ TEST {
]]
}
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ local t = {}
+ t.<~x~> = 1
+ return t
+ ]]
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ local t = require 'a'
+
+ print(t.<!x!>)
+ ]]
+ }
+}
diff --git a/test/rename/init.lua b/test/rename/init.lua
index c4108df2..31421ada 100644
--- a/test/rename/init.lua
+++ b/test/rename/init.lua
@@ -90,7 +90,7 @@ local function f(b)
end
]]
-config.set(nil, 'Lua.IntelliSense.traceBeSetted', true)
+--config.set('Lua.IntelliSense.traceBeSetted', true)
TEST ('a', '!!!') [[
t = {
a = 0
@@ -118,7 +118,6 @@ t = {
t["!!!"] = 1
a = t["!!!"]
]]
-config.set(nil, 'Lua.IntelliSense.traceBeSetted', false)
TEST ('a', '"') [[
print(t[ "a" ])