mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-23 12:45:04 +00:00
fix: wrong checked prefix on completing strings (#422)
This commit is contained in:
parent
134bd063be
commit
8413c66c51
3 changed files with 4 additions and 4 deletions
|
@ -199,8 +199,7 @@ impl StatefulRequest for CompletionRequest {
|
|||
|
||||
replace_range = ctx.to_lsp_range(rng, &source);
|
||||
} else {
|
||||
let lsp_start_position = ctx.to_lsp_pos(offset, &source);
|
||||
replace_range = LspRange::new(lsp_start_position, self.position);
|
||||
replace_range = ctx.to_lsp_range(offset..cursor, &source);
|
||||
}
|
||||
|
||||
let completions = completions.iter().map(|typst_completion| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue