rust/crates/ide-completion/src/tests
bors 7322a982f9 Auto merge of #12554 - XFFXFF:fix_11959, r=Veykril
fix: local items should not be completed in parent signature

fixes #11959

> We get a Bar completion for the following snippet which is wrong as the item is not visible in that position.
> ``` rust
> fn foo() -> $0 {
>    struct Bar;
> }
> ```

I investigated the problem and found that the scope of the cursor offset, also `CompletionContext.scope` is the body of the function
2022-06-16 12:48:33 +00:00
..
attribute.rs Merge the different identifier contexts into one enum 2022-05-07 15:06:59 +02:00
expression.rs the offset used for the completion cursor should always be relative to the original file and not to the marco file 2022-06-16 20:34:37 +08:00
flyimport.rs
fn_param.rs Use char for trigger character 2022-05-30 14:17:58 +02:00
item_list.rs More precise where keyword completions 2022-06-03 16:11:26 +02:00
item.rs More precise where keyword completions 2022-06-03 16:11:26 +02:00
pattern.rs fix: avoid adding enum parens in use 2022-06-06 01:34:01 +09:00
predicate.rs internal: Remove unqualified_path completions module 2022-05-05 15:50:40 +02:00
proc_macros.rs minor: Sort ide-completions test outputs for less disruptive diffs 2022-05-05 10:53:20 +02:00
record.rs More precise where keyword completions 2022-06-03 16:11:26 +02:00
special.rs disable private editable in TEST_CONFIG by default 2022-06-16 08:52:57 +08:00
type_pos.rs the offset used for the completion cursor should always be relative to the original file and not to the marco file 2022-06-16 20:34:37 +08:00
use_tree.rs Auto merge of #12490 - yue4u:fix/show-enum-in-fresh-use-tree, r=Veykril 2022-06-10 20:33:17 +00:00
visibility.rs Use char for trigger character 2022-05-30 14:17:58 +02:00