From c0e93478ef0e11aa8aa556af15815e6415cabc3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 9 Oct 2020 16:38:22 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E4=B8=AA=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/core/document-symbol.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'script-beta/core/document-symbol.lua') diff --git a/script-beta/core/document-symbol.lua b/script-beta/core/document-symbol.lua index 817db95e..6f3e788f 100644 --- a/script-beta/core/document-symbol.lua +++ b/script-beta/core/document-symbol.lua @@ -98,11 +98,13 @@ local function buildValue(source, symbols) range = { source.field.start, source.field.finish } sRange = { source.field.start, source.field.finish } kind = skind.Property - else + elseif source.type == 'setfield' then details[1] = 'field' range = { source.field.start, source.field.finish } sRange = { source.field.start, source.field.finish } kind = skind.Field + else + return end if source.value then local literal = source.value[1] -- cgit v1.2.3