diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-02-22 14:18:54 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-02-22 14:18:54 +0800 |
commit | 892f85f606d166960b66a8aba2e36215d648b311 (patch) | |
tree | 87bc619598c6de95ef6f10f96e625a4fac68e2fe /script/provider | |
parent | 5ab18375ca7f1b47fc589c30d419b23627e1a91f (diff) | |
download | lua-language-server-892f85f606d166960b66a8aba2e36215d648b311.zip |
fix signature param index misplaced
Diffstat (limited to 'script/provider')
-rw-r--r-- | script/provider/provider.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index 04d1b4e6..3fe7e691 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -564,7 +564,7 @@ proto.on('textDocument/signatureHelp', function (params) end await.close('signatureHelp') await.setID('signatureHelp') - local offset = files.offsetOfWord(uri, params.position) + local offset = files.offset(uri, params.position) local core = require 'core.signature' local results = core(uri, offset - 1) if not results then |