Skip to content

Commit

Permalink
Fix #646
Browse files Browse the repository at this point in the history
Resolve all properties by default
  • Loading branch information
hrsh7th committed Dec 14, 2021
1 parent 49de058 commit b903545
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/cmp/entry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,9 @@ entry.get_completion_item = function(self)
return self.cache:ensure({ 'get_completion_item', (self.resolved_completion_item and 1 or 0) }, function()
if self.resolved_completion_item then
local completion_item = misc.copy(self.completion_item)
completion_item.detail = self.resolved_completion_item.detail or completion_item.detail
completion_item.documentation = self.resolved_completion_item.documentation or completion_item.documentation
completion_item.additionalTextEdits = self.resolved_completion_item.additionalTextEdits or completion_item.additionalTextEdits
for k, v in pairs(self.resolved_completion_item) do
completion_item[k] = v or completion_item[k]
end
return completion_item
end
return self.completion_item
Expand Down

0 comments on commit b903545

Please sign in to comment.