summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/references/common.lua9
-rw-r--r--test/rename/init.lua8
2 files changed, 13 insertions, 4 deletions
diff --git a/test/references/common.lua b/test/references/common.lua
index 4245a79d..20ddd353 100644
--- a/test/references/common.lua
+++ b/test/references/common.lua
@@ -1,3 +1,4 @@
+local config = require "config"
TEST [[
local <?a?> = 1
<!a!> = <!a!>
@@ -95,6 +96,7 @@ t.x = 1
t[a.b.<?x?>] = 1
]]
+config.set('Lua.IntelliSense.traceBeSetted', true)
TEST [[
local t
local <!f!> = t.<?f?>
@@ -105,6 +107,7 @@ return {
<!f!> = <!f!>,
}
]]
+config.set('Lua.IntelliSense.traceBeSetted', false)
TEST [[
self = {
@@ -139,6 +142,7 @@ a.<!b!>.c = 1
print(a.<?b?>.c)
]]
+config.set('Lua.IntelliSense.traceBeSetted', true)
TEST [[
local <?f?>
local t = {
@@ -146,12 +150,14 @@ local t = {
}
print(t.<!a!>)
]]
+config.set('Lua.IntelliSense.traceBeSetted', false)
TEST [[
local <!f!>
local <!t!> = <?f?>
]]
+config.set('Lua.IntelliSense.traceBeSetted', true)
TEST [[
local <!f!>
a.<!t!> = <?f?>
@@ -160,16 +166,19 @@ a.<!t!> = <?f?>
TEST [[
<!t!>.<!f!> = <?t?>
]]
+config.set('Lua.IntelliSense.traceBeSetted', false)
TEST [[
local <!f!>
local <?t?> = <!f!>
]]
+config.set('Lua.IntelliSense.traceBeSetted', true)
TEST [[
local <!t!>
<!t!>.<!f!> = <?t?>
]]
+config.set('Lua.IntelliSense.traceBeSetted', false)
TEST [[
_G.<?xxx?> = 1
diff --git a/test/rename/init.lua b/test/rename/init.lua
index b20c0279..01abe167 100644
--- a/test/rename/init.lua
+++ b/test/rename/init.lua
@@ -1,7 +1,7 @@
-local core = require 'core.rename'
-local files = require 'files'
-local catch = require 'catch'
-local guide = require 'parser.guide'
+local core = require 'core.rename'
+local files = require 'files'
+local catch = require 'catch'
+local guide = require 'parser.guide'
local function replace(text, positions)
local state = files.getState('')