summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-17 10:19:14 +0800
committersumneko <sumneko@hotmail.com>2019-04-17 10:19:14 +0800
commit4ddf788965b6f43d75d119600ed490e47825dff1 (patch)
treea4556caaa1cf264d7fcb1f6897506151181c17fc
parente32e137cf89d1fd4c8af57cb513fdf575a8c688d (diff)
downloadlua-language-server-4ddf788965b6f43d75d119600ed490e47825dff1.zip
修正参数列表中输入逗号后,参数提示位置不正确的bug
-rw-r--r--server/src/method/textDocument/signatureHelp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/method/textDocument/signatureHelp.lua b/server/src/method/textDocument/signatureHelp.lua
index 98d2ea9b..9829917d 100644
--- a/server/src/method/textDocument/signatureHelp.lua
+++ b/server/src/method/textDocument/signatureHelp.lua
@@ -6,7 +6,7 @@ return function (lsp, params)
if not vm then
return
end
- local position = lines:positionAsChar(params.position.line + 1, params.position.character)
+ local position = lines:position(params.position.line + 1, params.position.character + 1)
local hovers = core.signature(vm, position)
if not hovers then
return