Skip to content

Commit

Permalink
Revert "fix: set the right postfix snippets competion source range"
Browse files Browse the repository at this point in the history
This reverts commit c5686c8.
  • Loading branch information
roife committed Apr 12, 2024
1 parent 657b33b commit 7528460
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/ide-completion/src/completions/postfix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ fn build_postfix_snippet_builder<'ctx>(
) -> impl Fn(&str, &str, &str) -> Builder + 'ctx {
move |label, detail, snippet| {
let edit = TextEdit::replace(delete_range, snippet.to_owned());
let mut item = CompletionItem::new(CompletionItemKind::Snippet, delete_range, label);
let mut item =
CompletionItem::new(CompletionItemKind::Snippet, ctx.source_range(), label);
item.detail(detail).snippet_edit(cap, edit);
let postfix_match = if ctx.original_token.text() == label {
cov_mark::hit!(postfix_exact_match_is_high_priority);
Expand Down

0 comments on commit 7528460

Please sign in to comment.