diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/crossfile/references.lua | 19 | ||||
-rw-r--r-- | test/rename/init.lua | 3 |
2 files changed, 20 insertions, 2 deletions
diff --git a/test/crossfile/references.lua b/test/crossfile/references.lua index 145792b5..cd7689ed 100644 --- a/test/crossfile/references.lua +++ b/test/crossfile/references.lua @@ -179,3 +179,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 774c86d2..f9f0c13d 100644 --- a/test/rename/init.lua +++ b/test/rename/init.lua @@ -90,7 +90,7 @@ local function f(b) end ]] -config.set('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('Lua.IntelliSense.traceBeSetted', false) TEST ('a', '"') [[ print(t[ "a" ]) |