diff options
Diffstat (limited to 'server/src/method/textDocument/completion.lua')
-rw-r--r-- | server/src/method/textDocument/completion.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/method/textDocument/completion.lua b/server/src/method/textDocument/completion.lua index eb33b3ce..4c7581df 100644 --- a/server/src/method/textDocument/completion.lua +++ b/server/src/method/textDocument/completion.lua @@ -81,6 +81,7 @@ return function (lsp, params) for i, item in ipairs(items) do item.sortText = ('%04d'):format(i) item.insertTextFormat = 2 + item.insertText = item.insertText or item.label if item.textEdit then item.textEdit.range = posToRange(lines, item.textEdit.start, item.textEdit.finish) item.textEdit.start = nil |