mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
specify completion item kind
This commit is contained in:
parent
284e894069
commit
328d123f5b
4 changed files with 17 additions and 12 deletions
|
@ -1,7 +1,9 @@
|
|||
use crate::completion::{CompletionItem, Completions, CompletionKind, CompletionContext, completion_item::Builder};
|
||||
use crate::completion::{CompletionItem, Completions, CompletionKind, CompletionItemKind, CompletionContext, completion_item::Builder};
|
||||
|
||||
fn snippet(label: &str, snippet: &str) -> Builder {
|
||||
CompletionItem::new(CompletionKind::Snippet, label).snippet(snippet)
|
||||
CompletionItem::new(CompletionKind::Snippet, label)
|
||||
.snippet(snippet)
|
||||
.kind(CompletionItemKind::Keyword)
|
||||
}
|
||||
|
||||
pub(super) fn complete_expr_snippet(acc: &mut Completions, ctx: &CompletionContext) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue