fix: match labels in signature help correctly (#288)

* fix: match labels in signature help correctly

* QAQ
This commit is contained in:
Myriad-Dreamin 2024-05-14 20:58:54 +08:00 committed by GitHub
parent 235f2e49ae
commit bf64d3f004
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -129,7 +129,7 @@ impl SemanticRequest for SignatureHelpRequest {
));
params.push(LspParamInfo {
label: lsp_types::ParameterLabel::Simple(param.name.as_ref().into()),
label: lsp_types::ParameterLabel::Simple(format!("{}:", param.name)),
documentation: if !param.docs.is_empty() {
Some(Documentation::MarkupContent(MarkupContent {
value: param.docs.clone().into(),