summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-07-15 14:08:39 +0800
committerGitHub <noreply@github.com>2024-07-15 14:08:39 +0800
commitbfafcefd307ebc05e9c40dcc872be8e23e5ba7c5 (patch)
treed348141df25632d5d44b035be39b87fdd43b8eae /script
parent256689690a107b134b642c6d7b1b57cc77c95f69 (diff)
parentb7730378a3af41acc15fcd9312fcbce549c0911a (diff)
downloadlua-language-server-bfafcefd307ebc05e9c40dcc872be8e23e5ba7c5.zip
Merge branch 'master' into master
Diffstat (limited to 'script')
-rw-r--r--script/core/hint.lua2
-rw-r--r--script/provider/provider.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/script/core/hint.lua b/script/core/hint.lua
index 67ac8516..9d098aa9 100644
--- a/script/core/hint.lua
+++ b/script/core/hint.lua
@@ -59,7 +59,7 @@ local function typeHint(uri, results, start, finish)
end
mark[src] = true
results[#results+1] = {
- text = ':' .. view,
+ text = ': ' .. view,
offset = src.finish,
kind = define.InlayHintKind.Type,
where = 'right',
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 15e78b9a..2e2fb5eb 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -1426,8 +1426,8 @@ m.register 'textDocument/inlayHint' {
},
position = converter.packPosition(state, res.offset),
kind = res.kind,
- paddingLeft = res.kind == 1,
- paddingRight = res.kind == 2,
+ paddingLeft = false,
+ paddingRight = res.kind == define.InlayHintKind.Parameter,
}
end
return hintResults