From 4f67a3a783ca55c28d23eb29a5b7089cbcab7625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 16 Nov 2021 15:14:10 +0800 Subject: `Lua.IntelliSense.localSet` --- test/hover/init.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/hover') diff --git a/test/hover/init.lua b/test/hover/init.lua index 36fbd6d2..128d1b8f 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -836,6 +836,7 @@ local t: { } ]] +config.set('Lua.IntelliSense.localSet', true) TEST [[ local x x = 1 @@ -846,6 +847,7 @@ print() [[ local x: number = 1 ]] +config.set('Lua.IntelliSense.localSet', false) TEST [[ local = 1 @@ -1687,6 +1689,7 @@ t.() field t.x: any ]] +config.set('Lua.IntelliSense.localSet', true) TEST [[ ---@class A local a @@ -1699,6 +1702,7 @@ print(b.) [[ field A.x: any ]] +config.set('Lua.IntelliSense.localSet', false) TEST [[ ---@class A -- cgit v1.2.3