File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -974,7 +974,7 @@ function M.prepare_attach(blocking)
974
974
975
975
else
976
976
local v = {}
977
- v .name = ln
977
+ v .name = tostring ( ln )
978
978
v .variablesReference = 0
979
979
if type (lv ) == " table" then
980
980
vars_ref [vars_id ] = lv
@@ -1007,7 +1007,7 @@ function M.prepare_attach(blocking)
1007
1007
1008
1008
else
1009
1009
local v = {}
1010
- v .name = ln
1010
+ v .name = tostring ( ln )
1011
1011
v .variablesReference = 0
1012
1012
if type (lv ) == " table" then
1013
1013
vars_ref [vars_id ] = lv
@@ -1032,7 +1032,7 @@ function M.prepare_attach(blocking)
1032
1032
elseif type (ref ) == " table" then
1033
1033
for ln , lv in pairs (ref ) do
1034
1034
local v = {}
1035
- v .name = ln
1035
+ v .name = tostring ( ln )
1036
1036
v .variablesReference = 0
1037
1037
if type (lv ) == " table" then
1038
1038
vars_ref [vars_id ] = lv
Original file line number Diff line number Diff line change 49
49
if vim.startswith(ln, "(") then
50
50
51
51
;; fill variable struct
52
- v.name = ln
52
+ v.name = tostring(ln)
53
53
v.variablesReference = 0
54
54
if type(lv) == "table" then
55
55
; make variable reference for table
You can’t perform that action at this time.
0 commit comments