refactor: simplify and document lsp_typst_boundary crate (#1049)

This commit is contained in:
Myriad-Dreamin 2024-12-22 11:21:04 +08:00 committed by GitHub
parent 5db1cf984a
commit 497a1e0aea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 205 additions and 233 deletions

View file

@ -5,7 +5,7 @@ use crate::{
adt::interner::Interned,
prelude::*,
syntax::{classify_context, classify_syntax, ArgClass, SyntaxContext},
LspParamInfo, SemanticRequest,
SemanticRequest,
};
/// The [`textDocument/signatureHelp`] request is sent from the client to the
@ -89,7 +89,7 @@ impl SemanticRequest for SignatureHelpRequest {
.unwrap_or("any")
));
params.push(LspParamInfo {
params.push(ParameterInformation {
label: lsp_types::ParameterLabel::Simple(format!("{}:", param.name)),
documentation: param.docs.as_ref().map(|docs| {
Documentation::MarkupContent(MarkupContent {