summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-07-06 18:24:22 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-07-06 18:24:22 +0800
commit764cc62a17af3cea9db5ae8bc695c9b9230841ac (patch)
tree99d36899d813d6f4a41a61f43bd10cc119d51f93 /script/provider/provider.lua
parent91524a855815c56deeb0246266ce1e18e31b070c (diff)
downloadlua-language-server-764cc62a17af3cea9db5ae8bc695c9b9230841ac.zip
fix supporting unicode in signature
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 787cfeb8..7b0bb98b 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -772,8 +772,8 @@ m.register 'textDocument/signatureHelp' {
for j, param in ipairs(result.params) do
parameters[j] = {
label = {
- param.label[1],
- param.label[2],
+ converter.len(result.label, 1, param.label[1]),
+ converter.len(result.label, 1, param.label[2]),
}
}
end