mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-23 04:35:00 +00:00
feat: complete parameters on user functions (#148)
* fix: skip tabs that have no uris for reopening pdf * dev: lift call analysis * feat: complete parameters on user functions
This commit is contained in:
parent
631f6e288c
commit
d708bdfe2d
8 changed files with 605 additions and 611 deletions
|
@ -6,7 +6,7 @@ use crate::{
|
|||
prelude::*,
|
||||
syntax::{get_deref_target, DerefTarget},
|
||||
typst_to_lsp::completion_kind,
|
||||
upstream::{autocomplete_, Completion, CompletionContext, CompletionKind},
|
||||
upstream::{autocomplete, Completion, CompletionContext, CompletionKind},
|
||||
LspCompletion, StatefulRequest,
|
||||
};
|
||||
|
||||
|
@ -111,8 +111,8 @@ impl StatefulRequest for CompletionRequest {
|
|||
}
|
||||
|
||||
let items = completion_result.or_else(|| {
|
||||
let cc_ctx = CompletionContext::new(ctx.world(), doc, &source, cursor, explicit)?;
|
||||
let (offset, mut completions) = autocomplete_(cc_ctx)?;
|
||||
let cc_ctx = CompletionContext::new(ctx, doc, &source, cursor, explicit)?;
|
||||
let (offset, mut completions) = autocomplete(cc_ctx)?;
|
||||
|
||||
let replace_range;
|
||||
if match_ident.as_ref().is_some_and(|i| i.offset() == offset) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue