Skip to content

Commit 26b94a3

Browse files
committed
improve label in hover
1 parent 27e0563 commit 26b94a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/vm/infer.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,8 @@ function mt:view(uri, default)
451451
if #array == 0 then
452452
view = 'nil'
453453
else
454-
if max > 1 then
454+
if max > 1
455+
or view:find(guide.notNamePattern .. guide.namePattern .. '$') then
455456
view = '(' .. view .. ')?'
456457
else
457458
view = view .. '?'

0 commit comments

Comments
 (0)