diff options
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/method/textDocument/completion.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/src/method/textDocument/completion.lua b/server/src/method/textDocument/completion.lua index fd5d1ed6..8419036a 100644 --- a/server/src/method/textDocument/completion.lua +++ b/server/src/method/textDocument/completion.lua @@ -96,6 +96,13 @@ return function (lsp, params) item.textEdit.start = nil item.textEdit.finish = nil end + if item.additionalTextEdits then + for _, textEdit in ipairs(item.additionalTextEdits) do + textEdit.range = posToRange(lines, textEdit.start, textEdit.finish) + textEdit.start = nil + textEdit.finish = nil + end + end end local response = { |