diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-17 10:19:14 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-17 10:19:14 +0800 |
commit | 4ddf788965b6f43d75d119600ed490e47825dff1 (patch) | |
tree | a4556caaa1cf264d7fcb1f6897506151181c17fc | |
parent | e32e137cf89d1fd4c8af57cb513fdf575a8c688d (diff) | |
download | lua-language-server-4ddf788965b6f43d75d119600ed490e47825dff1.zip |
修正参数列表中输入逗号后,参数提示位置不正确的bug
-rw-r--r-- | server/src/method/textDocument/signatureHelp.lua | 2 |
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 |