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(),

View file

@ -385,7 +385,7 @@ fn e2e() {
});
let hash = replay_log(&tinymist_binary, &root.join("vscode"));
insta::assert_snapshot!(hash, @"siphash128_13:232d10be45b5cb9d48abbfc5aab974be");
insta::assert_snapshot!(hash, @"siphash128_13:1e7e518ee933e10087b613f885945c41");
}
}