mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-19 18:55:01 +00:00
fix: strip out the line containing the return type (#803)
This commit is contained in:
parent
58b8015386
commit
41868aa0f4
3 changed files with 18 additions and 0 deletions
|
@ -76,6 +76,7 @@ pub fn identify_func_docs(converted: &str) -> StrResult<TidyFuncDocs> {
|
|||
continue;
|
||||
};
|
||||
|
||||
break_line = Some(i);
|
||||
return_ty = Some(w.trim().into());
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
/// -> content
|
||||
#let _delayed-wrapper(body) = utils.label-it(
|
||||
metadata((kind: "touying-delayed-wrapper", body: body)),
|
||||
"touying-temporary-mark",
|
||||
)
|
||||
|
||||
#(/* ident after */ _delayed-wrapper);
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
source: crates/tinymist-query/src/hover.rs
|
||||
expression: "JsonRepr::new_redacted(result, &REDACT_LOC)"
|
||||
input_file: crates/tinymist-query/src/fixtures/hover/annotate_ret.typ
|
||||
---
|
||||
{
|
||||
"contents": "```typc\nlet _delayed-wrapper(\n body,\n) = content;\n```\n\n---\n## Parameters\n\n@positional `body`",
|
||||
"range": "6:20:6:36"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue