mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +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())
|
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) {
|
let completion_kind = if func.has_self_param(ctx.db) {
|
||||||
CompletionItemKind::Method
|
CompletionItemKind::Method
|
||||||
|
@ -193,7 +193,7 @@ mod tests {
|
||||||
use insta::assert_debug_snapshot;
|
use insta::assert_debug_snapshot;
|
||||||
|
|
||||||
fn complete(code: &str) -> Vec<CompletionItem> {
|
fn complete(code: &str) -> Vec<CompletionItem> {
|
||||||
do_completion(code, CompletionKind::Reference)
|
do_completion(code, CompletionKind::Magic)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue