File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,11 @@ local function getFieldEventName(field)
186186 if not secondTypeUnit or secondTypeUnit .type ~= ' doc.type.function' then
187187 return nil
188188 end
189- local eventName = firstEnum [1 ]:match [[ ^['"](.+)['"]$]]
189+ local enmuStr = firstEnum [1 ]
190+ if type (enmuStr ) ~= ' string' then
191+ return nil
192+ end
193+ local eventName = enmuStr :match [[ ^['"](.+)['"]$]]
190194 field ._eventName = eventName
191195 return eventName
192196end
Original file line number Diff line number Diff line change 148148local function removeVisiblePath (uri )
149149 local path = furi .decode (uri )
150150 path = workspace .normalize (path )
151+ if not path then
152+ return
153+ end
151154 for _ , scp in ipairs (workspace .folders ) do
152155 scp :get (' visiblePath' )[path ] = nil
153156 --- @type collector
You can’t perform that action at this time.
0 commit comments