summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/provider/provider.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 5eab68fb..04d1b4e6 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -530,11 +530,11 @@ proto.on('completionItem/resolve', function (item)
if not resolved then
return nil
end
- item.detail = resolved.detail
+ item.detail = resolved.detail or item.detail
item.documentation = resolved.description and {
value = resolved.description,
kind = 'markdown',
- }
+ } or item.documentation
item.additionalTextEdits = resolved.additionalTextEdits and (function ()
local t = {}
for j, edit in ipairs(resolved.additionalTextEdits) do
@@ -548,7 +548,7 @@ proto.on('completionItem/resolve', function (item)
}
end
return t
- end)()
+ end)() or item.additionalTextEdits
return item
end)