mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Update completion kind to Magic in the unit tests.
This commit is contained in:
parent
fc46ed81ee
commit
5216b09ed6
1 changed files with 2 additions and 2 deletions
|
@ -166,7 +166,7 @@ pub(crate) fn add_function_impl(acc: &mut Completions, ctx: &CompletionContext,
|
|||
format!("fn {}()", func_name.to_string())
|
||||
};
|
||||
|
||||
let builder = CompletionItem::new(CompletionKind::Reference, start, label);
|
||||
let builder = CompletionItem::new(CompletionKind::Magic, start, label);
|
||||
|
||||
let completion_kind = if func.has_self_param(ctx.db) {
|
||||
CompletionItemKind::Method
|
||||
|
@ -193,7 +193,7 @@ mod tests {
|
|||
use insta::assert_debug_snapshot;
|
||||
|
||||
fn complete(code: &str) -> Vec<CompletionItem> {
|
||||
do_completion(code, CompletionKind::Reference)
|
||||
do_completion(code, CompletionKind::Magic)
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue