summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-22 14:18:54 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-22 14:18:54 +0800
commit892f85f606d166960b66a8aba2e36215d648b311 (patch)
tree87bc619598c6de95ef6f10f96e625a4fac68e2fe /script/provider
parent5ab18375ca7f1b47fc589c30d419b23627e1a91f (diff)
downloadlua-language-server-892f85f606d166960b66a8aba2e36215d648b311.zip
fix signature param index misplaced
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/provider.lua2
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