summaryrefslogtreecommitdiff
path: root/test/rename
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-16 17:31:45 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-18 17:10:59 +0800
commit3843e72b87de1aa8903352d532dbdb60ed662da1 (patch)
tree626861e124ad08272b31d24e0c4701c2f90d5e3a /test/rename
parent19d38a540f37eff20c7fad1f35143f685a1831eb (diff)
downloadlua-language-server-3843e72b87de1aa8903352d532dbdb60ed662da1.zip
update
Diffstat (limited to 'test/rename')
-rw-r--r--test/rename/init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/rename/init.lua b/test/rename/init.lua
index 01abe167..774c86d2 100644
--- a/test/rename/init.lua
+++ b/test/rename/init.lua
@@ -2,6 +2,7 @@ local core = require 'core.rename'
local files = require 'files'
local catch = require 'catch'
local guide = require 'parser.guide'
+local config = require 'config'
local function replace(text, positions)
local state = files.getState('')
@@ -89,6 +90,7 @@ local function f(b)
end
]]
+config.set('Lua.IntelliSense.traceBeSetted', true)
TEST ('a', '!!!') [[
t = {
a = 0
@@ -116,6 +118,7 @@ t = {
t["!!!"] = 1
a = t["!!!"]
]]
+config.set('Lua.IntelliSense.traceBeSetted', false)
TEST ('a', '"') [[
print(t[ "a" ])