mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 17:28:09 +00:00
Merge #694
694: Sort completions in tests r=matklad a=flodiebold Co-authored-by: Florian Diebold <flodiebold@gmail.com>
This commit is contained in:
commit
6e36d3f653
25 changed files with 678 additions and 677 deletions
|
@ -324,10 +324,11 @@ pub(crate) fn check_completion(test_name: &str, code: &str, kind: CompletionKind
|
|||
};
|
||||
let completions = completions(&analysis.db, position).unwrap();
|
||||
let completion_items: Vec<CompletionItem> = completions.into();
|
||||
let kind_completions: Vec<CompletionItem> = completion_items
|
||||
let mut kind_completions: Vec<CompletionItem> = completion_items
|
||||
.into_iter()
|
||||
.filter(|c| c.completion_kind == kind)
|
||||
.collect();
|
||||
kind_completions.sort_by_key(|c| c.label.clone());
|
||||
assert_debug_snapshot_matches!(test_name, kind_completions);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,24 +1,10 @@
|
|||
---
|
||||
created: "2019-01-23T07:42:59.656273+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T19:56:59.944446814+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
[
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "x",
|
||||
kind: Some(
|
||||
Binding
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: None,
|
||||
insert_text_format: PlainText,
|
||||
source_range: [83; 83),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "quux",
|
||||
|
@ -36,5 +22,19 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
insert_text_format: Snippet,
|
||||
source_range: [83; 83),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "x",
|
||||
kind: Some(
|
||||
Binding
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: None,
|
||||
insert_text_format: PlainText,
|
||||
source_range: [83; 83),
|
||||
text_edit: None
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
---
|
||||
created: "2019-01-23T07:42:59.658419+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T19:56:59.946956414+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
[
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "b",
|
||||
label: "a",
|
||||
kind: Some(
|
||||
Binding
|
||||
),
|
||||
|
@ -21,7 +21,7 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "a",
|
||||
label: "b",
|
||||
kind: Some(
|
||||
Binding
|
||||
),
|
||||
|
|
|
@ -1,21 +1,25 @@
|
|||
---
|
||||
created: "2019-01-23T07:42:59.657713+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T19:56:59.948953759+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
[
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "y",
|
||||
label: "quux",
|
||||
kind: Some(
|
||||
Binding
|
||||
Function
|
||||
),
|
||||
detail: Some(
|
||||
"fn quux(x: i32)"
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: None,
|
||||
insert_text_format: PlainText,
|
||||
insert_text: Some(
|
||||
"quux($0)"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [79; 79),
|
||||
text_edit: None
|
||||
},
|
||||
|
@ -35,19 +39,15 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "quux",
|
||||
label: "y",
|
||||
kind: Some(
|
||||
Function
|
||||
),
|
||||
detail: Some(
|
||||
"fn quux(x: i32)"
|
||||
Binding
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"quux($0)"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
insert_text: None,
|
||||
insert_text_format: PlainText,
|
||||
source_range: [79; 79),
|
||||
text_edit: None
|
||||
}
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
---
|
||||
created: "2019-01-23T05:27:32.197434+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T19:56:59.913816522+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
[
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "if",
|
||||
label: "break",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
|
@ -15,55 +15,7 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"if $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [55; 55),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [55; 55),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [55; 55),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "loop",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"loop {$0}"
|
||||
"break;"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [55; 55),
|
||||
|
@ -87,7 +39,7 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "break",
|
||||
label: "if",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
|
@ -95,7 +47,39 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"break;"
|
||||
"if $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [55; 55),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "loop",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"loop {$0}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [55; 55),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [55; 55),
|
||||
|
@ -116,5 +100,21 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
insert_text_format: Snippet,
|
||||
source_range: [55; 55),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [55; 55),
|
||||
text_edit: None
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
created: "2019-01-23T05:27:32.314513+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T20:00:15.602646258+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
|
@ -21,38 +21,6 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
source_range: [60; 60),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [60; 60),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [60; 60),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "loop",
|
||||
|
@ -69,6 +37,22 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
source_range: [60; 60),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [60; 60),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "return",
|
||||
|
@ -84,5 +68,21 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
insert_text_format: Snippet,
|
||||
source_range: [60; 60),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [60; 60),
|
||||
text_edit: None
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
created: "2019-01-23T05:27:32.197678+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T19:56:59.920190685+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
|
@ -21,38 +21,6 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
source_range: [85; 85),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [85; 85),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [85; 85),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "loop",
|
||||
|
@ -69,6 +37,22 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
source_range: [85; 85),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [85; 85),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "return",
|
||||
|
@ -84,5 +68,21 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
insert_text_format: Snippet,
|
||||
source_range: [85; 85),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [85; 85),
|
||||
text_edit: None
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,26 +1,10 @@
|
|||
---
|
||||
created: "2019-01-22T15:38:19.788294+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T19:56:59.965130040+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
[
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "main",
|
||||
kind: Some(
|
||||
Function
|
||||
),
|
||||
detail: Some(
|
||||
"fn main()"
|
||||
),
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: None,
|
||||
insert_text_format: PlainText,
|
||||
source_range: [35; 39),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "frobnicate",
|
||||
|
@ -36,5 +20,21 @@ source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
|
|||
insert_text_format: PlainText,
|
||||
source_range: [35; 39),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "main",
|
||||
kind: Some(
|
||||
Function
|
||||
),
|
||||
detail: Some(
|
||||
"fn main()"
|
||||
),
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: None,
|
||||
insert_text_format: PlainText,
|
||||
source_range: [35; 39),
|
||||
text_edit: None
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,30 +1,10 @@
|
|||
---
|
||||
created: "2019-01-25T16:44:04.640545300+00:00"
|
||||
created: "2019-01-27T19:56:59.937030324+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
[
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "Foo",
|
||||
kind: Some(
|
||||
EnumVariant
|
||||
),
|
||||
detail: Some(
|
||||
"()"
|
||||
),
|
||||
documentation: Some(
|
||||
Documentation(
|
||||
"Foo Variant"
|
||||
)
|
||||
),
|
||||
lookup: None,
|
||||
insert_text: None,
|
||||
insert_text_format: PlainText,
|
||||
source_range: [116; 116),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "Bar",
|
||||
|
@ -44,5 +24,25 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
insert_text_format: PlainText,
|
||||
source_range: [116; 116),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "Foo",
|
||||
kind: Some(
|
||||
EnumVariant
|
||||
),
|
||||
detail: Some(
|
||||
"()"
|
||||
),
|
||||
documentation: Some(
|
||||
Documentation(
|
||||
"Foo Variant"
|
||||
)
|
||||
),
|
||||
lookup: None,
|
||||
insert_text: None,
|
||||
insert_text_format: PlainText,
|
||||
source_range: [116; 116),
|
||||
text_edit: None
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,30 +1,10 @@
|
|||
---
|
||||
created: "2019-01-25T16:44:04.641542400+00:00"
|
||||
created: "2019-01-27T19:56:59.938973454+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
[
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "Foo",
|
||||
kind: Some(
|
||||
EnumVariant
|
||||
),
|
||||
detail: Some(
|
||||
"()"
|
||||
),
|
||||
documentation: Some(
|
||||
Documentation(
|
||||
"Foo Variant (empty)"
|
||||
)
|
||||
),
|
||||
lookup: None,
|
||||
insert_text: None,
|
||||
insert_text_format: PlainText,
|
||||
source_range: [180; 180),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "Bar",
|
||||
|
@ -45,6 +25,26 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
source_range: [180; 180),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "Foo",
|
||||
kind: Some(
|
||||
EnumVariant
|
||||
),
|
||||
detail: Some(
|
||||
"()"
|
||||
),
|
||||
documentation: Some(
|
||||
Documentation(
|
||||
"Foo Variant (empty)"
|
||||
)
|
||||
),
|
||||
lookup: None,
|
||||
insert_text: None,
|
||||
insert_text_format: PlainText,
|
||||
source_range: [180; 180),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "S",
|
||||
|
|
|
@ -1,33 +1,10 @@
|
|||
---
|
||||
created: "2019-01-22T14:45:00.817649800+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T19:56:59.944118550+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
[
|
||||
CompletionItem {
|
||||
completion_kind: Postfix,
|
||||
label: "not",
|
||||
kind: None,
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"!bar"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [76; 76),
|
||||
text_edit: Some(
|
||||
TextEdit {
|
||||
atoms: [
|
||||
AtomTextEdit {
|
||||
delete: [72; 76),
|
||||
insert: ""
|
||||
}
|
||||
]
|
||||
}
|
||||
)
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Postfix,
|
||||
label: "if",
|
||||
|
@ -74,6 +51,29 @@ source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
|
|||
}
|
||||
)
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Postfix,
|
||||
label: "not",
|
||||
kind: None,
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"!bar"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [76; 76),
|
||||
text_edit: Some(
|
||||
TextEdit {
|
||||
atoms: [
|
||||
AtomTextEdit {
|
||||
delete: [72; 76),
|
||||
insert: ""
|
||||
}
|
||||
]
|
||||
}
|
||||
)
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Postfix,
|
||||
label: "while",
|
||||
|
|
|
@ -1,33 +1,10 @@
|
|||
---
|
||||
created: "2019-01-22T14:45:00.820642200+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T19:56:59.942831213+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
[
|
||||
CompletionItem {
|
||||
completion_kind: Postfix,
|
||||
label: "not",
|
||||
kind: None,
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"!bar"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [76; 77),
|
||||
text_edit: Some(
|
||||
TextEdit {
|
||||
atoms: [
|
||||
AtomTextEdit {
|
||||
delete: [72; 76),
|
||||
insert: ""
|
||||
}
|
||||
]
|
||||
}
|
||||
)
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Postfix,
|
||||
label: "if",
|
||||
|
@ -74,6 +51,29 @@ source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
|
|||
}
|
||||
)
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Postfix,
|
||||
label: "not",
|
||||
kind: None,
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"!bar"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [76; 77),
|
||||
text_edit: Some(
|
||||
TextEdit {
|
||||
atoms: [
|
||||
AtomTextEdit {
|
||||
delete: [72; 76),
|
||||
insert: ""
|
||||
}
|
||||
]
|
||||
}
|
||||
)
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Postfix,
|
||||
label: "while",
|
||||
|
|
|
@ -1,33 +1,10 @@
|
|||
---
|
||||
created: "2019-01-23T05:27:32.222118+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T19:56:59.944615925+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
[
|
||||
CompletionItem {
|
||||
completion_kind: Postfix,
|
||||
label: "not",
|
||||
kind: None,
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"!bar"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [78; 78),
|
||||
text_edit: Some(
|
||||
TextEdit {
|
||||
atoms: [
|
||||
AtomTextEdit {
|
||||
delete: [72; 78),
|
||||
insert: ""
|
||||
}
|
||||
]
|
||||
}
|
||||
)
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Postfix,
|
||||
label: "if",
|
||||
|
@ -74,6 +51,29 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
}
|
||||
)
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Postfix,
|
||||
label: "not",
|
||||
kind: None,
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"!bar"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [78; 78),
|
||||
text_edit: Some(
|
||||
TextEdit {
|
||||
atoms: [
|
||||
AtomTextEdit {
|
||||
delete: [72; 78),
|
||||
insert: ""
|
||||
}
|
||||
]
|
||||
}
|
||||
)
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Postfix,
|
||||
label: "while",
|
||||
|
|
|
@ -1,28 +1,10 @@
|
|||
---
|
||||
created: "2019-01-22T15:38:19.919937+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T19:56:59.965550827+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
[
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "no_args",
|
||||
kind: Some(
|
||||
Function
|
||||
),
|
||||
detail: Some(
|
||||
"fn no_args()"
|
||||
),
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"no_args()$0"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [53; 56),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "main",
|
||||
|
@ -40,5 +22,23 @@ source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
|
|||
insert_text_format: Snippet,
|
||||
source_range: [53; 56),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "no_args",
|
||||
kind: Some(
|
||||
Function
|
||||
),
|
||||
detail: Some(
|
||||
"fn no_args()"
|
||||
),
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"no_args()$0"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [53; 56),
|
||||
text_edit: None
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
created: "2019-01-23T05:27:32.197298+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T19:56:59.913826978+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
|
@ -21,38 +21,6 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
source_range: [41; 41),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [41; 41),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [41; 41),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "loop",
|
||||
|
@ -69,6 +37,22 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
source_range: [41; 41),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [41; 41),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "return",
|
||||
|
@ -84,5 +68,21 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
insert_text_format: Snippet,
|
||||
source_range: [41; 41),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [41; 41),
|
||||
text_edit: None
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,74 +1,10 @@
|
|||
---
|
||||
created: "2019-01-23T05:27:32.197423+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T19:56:59.914744437+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
[
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "if",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"if $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [92; 92),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [92; 92),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [92; 92),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "loop",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"loop {$0}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [92; 92),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "else",
|
||||
|
@ -101,6 +37,54 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
source_range: [92; 92),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "if",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"if $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [92; 92),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "loop",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"loop {$0}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [92; 92),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [92; 92),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "return",
|
||||
|
@ -116,5 +100,21 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
insert_text_format: Snippet,
|
||||
source_range: [92; 92),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [92; 92),
|
||||
text_edit: None
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
created: "2019-01-23T05:27:32.200056+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T19:56:59.927994050+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
|
@ -21,38 +21,6 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
source_range: [48; 48),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [48; 48),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [48; 48),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "loop",
|
||||
|
@ -69,6 +37,22 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
source_range: [48; 48),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [48; 48),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "return",
|
||||
|
@ -84,5 +68,21 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
insert_text_format: Snippet,
|
||||
source_range: [48; 48),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [48; 48),
|
||||
text_edit: None
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
created: "2019-01-23T05:27:32.314468+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T20:00:15.604538211+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
|
@ -21,38 +21,6 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
source_range: [41; 41),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [41; 41),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [41; 41),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "loop",
|
||||
|
@ -69,6 +37,22 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
source_range: [41; 41),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [41; 41),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "return",
|
||||
|
@ -84,5 +68,21 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
insert_text_format: Snippet,
|
||||
source_range: [41; 41),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [41; 41),
|
||||
text_edit: None
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
created: "2019-01-23T05:27:32.197624+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T19:56:59.918882346+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
|
@ -21,38 +21,6 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
source_range: [83; 83),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [83; 83),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [83; 83),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "loop",
|
||||
|
@ -69,6 +37,22 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
source_range: [83; 83),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [83; 83),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "return",
|
||||
|
@ -84,5 +68,21 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
insert_text_format: Snippet,
|
||||
source_range: [83; 83),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [83; 83),
|
||||
text_edit: None
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
created: "2019-01-23T05:27:32.302452+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T20:00:15.604282112+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
|
@ -21,38 +21,6 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
source_range: [83; 83),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [83; 83),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [83; 83),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "loop",
|
||||
|
@ -69,6 +37,22 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
source_range: [83; 83),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [83; 83),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "return",
|
||||
|
@ -84,5 +68,21 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
insert_text_format: Snippet,
|
||||
source_range: [83; 83),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [83; 83),
|
||||
text_edit: None
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,25 +1,21 @@
|
|||
---
|
||||
created: "2019-01-23T07:42:59.657718+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T19:56:59.953151082+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
[
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "quux",
|
||||
label: "Baz",
|
||||
kind: Some(
|
||||
Function
|
||||
),
|
||||
detail: Some(
|
||||
"fn quux()"
|
||||
Enum
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"quux()$0"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
insert_text: None,
|
||||
insert_text_format: PlainText,
|
||||
source_range: [89; 89),
|
||||
text_edit: None
|
||||
},
|
||||
|
@ -39,15 +35,19 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "Baz",
|
||||
label: "quux",
|
||||
kind: Some(
|
||||
Enum
|
||||
Function
|
||||
),
|
||||
detail: Some(
|
||||
"fn quux()"
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: None,
|
||||
insert_text_format: PlainText,
|
||||
insert_text: Some(
|
||||
"quux()$0"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [89; 89),
|
||||
text_edit: None
|
||||
}
|
||||
|
|
|
@ -1,10 +1,24 @@
|
|||
---
|
||||
created: "2019-01-23T07:42:59.657837+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T19:56:59.959185284+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
[
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "Bar",
|
||||
kind: Some(
|
||||
Struct
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: None,
|
||||
insert_text_format: PlainText,
|
||||
source_range: [101; 101),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "quux",
|
||||
|
@ -22,19 +36,5 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
insert_text_format: Snippet,
|
||||
source_range: [101; 101),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "Bar",
|
||||
kind: Some(
|
||||
Struct
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: None,
|
||||
insert_text_format: PlainText,
|
||||
source_range: [101; 101),
|
||||
text_edit: None
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
---
|
||||
created: "2019-01-22T14:45:00.651095300+00:00"
|
||||
creator: insta@0.4.0
|
||||
created: "2019-01-27T19:56:59.922933445+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
[
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "if",
|
||||
label: "break",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
|
@ -15,55 +15,7 @@ source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
|
|||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"if $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [106; 108),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [106; 108),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [106; 108),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "loop",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"loop {$0}"
|
||||
"break"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [106; 108),
|
||||
|
@ -87,7 +39,7 @@ source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
|
|||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "break",
|
||||
label: "if",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
|
@ -95,7 +47,39 @@ source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
|
|||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"break"
|
||||
"if $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [106; 108),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "loop",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"loop {$0}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [106; 108),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "match",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"match $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [106; 108),
|
||||
|
@ -116,5 +100,21 @@ source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
|
|||
insert_text_format: Snippet,
|
||||
source_range: [106; 108),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Keyword,
|
||||
label: "while",
|
||||
kind: Some(
|
||||
Keyword
|
||||
),
|
||||
detail: None,
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"while $0 {}"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [106; 108),
|
||||
text_edit: None
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,26 +1,10 @@
|
|||
---
|
||||
created: "2019-01-23T13:19:23.501353210+00:00"
|
||||
created: "2019-01-27T19:56:59.910113268+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
[
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "the_field",
|
||||
kind: Some(
|
||||
Field
|
||||
),
|
||||
detail: Some(
|
||||
"(u32, i32)"
|
||||
),
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: None,
|
||||
insert_text_format: PlainText,
|
||||
source_range: [126; 126),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "foo",
|
||||
|
@ -38,5 +22,21 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
insert_text_format: Snippet,
|
||||
source_range: [126; 126),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "the_field",
|
||||
kind: Some(
|
||||
Field
|
||||
),
|
||||
detail: Some(
|
||||
"(u32, i32)"
|
||||
),
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: None,
|
||||
insert_text_format: PlainText,
|
||||
source_range: [126; 126),
|
||||
text_edit: None
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,10 +1,28 @@
|
|||
---
|
||||
created: "2019-01-25T19:27:09.519688600+00:00"
|
||||
created: "2019-01-27T19:56:59.909689544+00:00"
|
||||
creator: insta@0.5.2
|
||||
expression: kind_completions
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
---
|
||||
[
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "foo",
|
||||
kind: Some(
|
||||
Method
|
||||
),
|
||||
detail: Some(
|
||||
"fn foo(self)"
|
||||
),
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"foo()$0"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [187; 187),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "the_field",
|
||||
|
@ -24,23 +42,5 @@ source: crates/ra_ide_api/src/completion/completion_item.rs
|
|||
insert_text_format: PlainText,
|
||||
source_range: [187; 187),
|
||||
text_edit: None
|
||||
},
|
||||
CompletionItem {
|
||||
completion_kind: Reference,
|
||||
label: "foo",
|
||||
kind: Some(
|
||||
Method
|
||||
),
|
||||
detail: Some(
|
||||
"fn foo(self)"
|
||||
),
|
||||
documentation: None,
|
||||
lookup: None,
|
||||
insert_text: Some(
|
||||
"foo()$0"
|
||||
),
|
||||
insert_text_format: Snippet,
|
||||
source_range: [187; 187),
|
||||
text_edit: None
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue