From 90fb20579113cd580faf030332c2007b40a6fe2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 27 Aug 2019 21:09:24 +0800 Subject: =?UTF-8?q?=E6=80=BB=E6=98=AF=E5=8F=91=E9=80=81=20insertText?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/method/textDocument/completion.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'server/src/method/textDocument') 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 -- cgit v1.2.3