File tree 2 files changed +2
-2
lines changed
lua/blink/cmp/sources/lib
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ function sources.resolve(item)
152
152
break
153
153
end
154
154
end
155
- if item_source == nil then return async .task .new (function (resolve ) resolve () end ) end
155
+ if item_source == nil then return async .task .new (function (resolve ) resolve (item ) end ) end
156
156
157
157
return item_source :resolve (item ):catch (function (err ) vim .print (' failed to resolve item with error: ' .. err ) end )
158
158
end
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ function source:resolve(item)
118
118
local tasks = self .resolve_tasks
119
119
if tasks [item ] == nil or tasks [item ].status == async .STATUS .CANCELLED then
120
120
tasks [item ] = async .task .new (function (resolve )
121
- if self .module .resolve == nil then return resolve (nil ) end
121
+ if self .module .resolve == nil then return resolve (item ) end
122
122
return self .module :resolve (item , function (resolved_item )
123
123
-- use the item's existing documentation and detail if the LSP didn't return it
124
124
-- TODO: do we need this? this would be for java but never checked if it's needed
You can’t perform that action at this time.
0 commit comments