mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Remove CompletionKind
in favor of CompletionItemKind
This commit is contained in:
parent
722489e3ff
commit
0468b11de7
26 changed files with 191 additions and 596 deletions
|
@ -6,12 +6,12 @@ use syntax::T;
|
|||
|
||||
use crate::{
|
||||
context::PathCompletionContext, item::Builder, CompletionContext, CompletionItem,
|
||||
CompletionItemKind, CompletionKind, Completions, SnippetScope,
|
||||
CompletionItemKind, Completions, SnippetScope,
|
||||
};
|
||||
|
||||
fn snippet(ctx: &CompletionContext, cap: SnippetCap, label: &str, snippet: &str) -> Builder {
|
||||
let mut item = CompletionItem::new(CompletionKind::Snippet, ctx.source_range(), label);
|
||||
item.insert_snippet(cap, snippet).kind(CompletionItemKind::Snippet);
|
||||
let mut item = CompletionItem::new(CompletionItemKind::Snippet, ctx.source_range(), label);
|
||||
item.insert_snippet(cap, snippet);
|
||||
item
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue