We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 340370d commit 65e9605Copy full SHA for 65e9605
lua/blink/cmp/accept/text-edits.lua
@@ -28,7 +28,7 @@ function text_edits.apply_additional_text_edits(item)
28
-- LSPs can either include these in the initial response or require a resolve
29
-- These are used for things like auto-imports
30
-- todo: if the main text edit was before this text edit, do we need to compensate?
31
- if item.additionalTextEdits ~= nil then
+ if item.additionalTextEdits ~= nil and next(item.additionalTextEdits) ~= nil then
32
text_edits.apply_text_edits(item.client_id, item.additionalTextEdits)
33
else
34
require('blink.cmp.sources.lib').resolve(item, function(resolved_item)
0 commit comments