mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-19 18:55:01 +00:00
refactor: reduce source cache and mutability (#693)
* dev: reduce source cache and mutability * dev: update common imports
This commit is contained in:
parent
4d23b57785
commit
de130dcc2c
29 changed files with 116 additions and 224 deletions
|
@ -52,7 +52,7 @@ impl SemanticRequest for SignatureHelpRequest {
|
|||
let Some(Value::Func(function)) = def_link.value else {
|
||||
return None;
|
||||
};
|
||||
trace!("got function {function:?}");
|
||||
log::trace!("got function {function:?}");
|
||||
|
||||
let mut function = &function;
|
||||
use typst::foundations::func::Repr;
|
||||
|
@ -151,7 +151,7 @@ impl SemanticRequest for SignatureHelpRequest {
|
|||
active_parameter.map(|x| x.min(sig.primary().pos_size().saturating_sub(1)));
|
||||
}
|
||||
|
||||
trace!("got signature info {label} {params:?}");
|
||||
log::trace!("got signature info {label} {params:?}");
|
||||
|
||||
Some(SignatureHelp {
|
||||
signatures: vec![SignatureInformation {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue