Laurențiu Nicola
|
c48062fe2a
|
Merge commit 'aa9bc8612514d216f84eec218dfd19ab83f3598a' into sync-from-ra
|
2023-06-05 12:04:23 +03:00 |
|
Laurențiu Nicola
|
dbf04a5ee2
|
⬆️ rust-analyzer
|
2023-03-20 08:31:01 +02:00 |
|
Laurențiu Nicola
|
b2f6fd4f96
|
⬆️ rust-analyzer
|
2023-03-13 10:42:24 +02:00 |
|
Laurențiu Nicola
|
7e711da2f0
|
⬆️ rust-analyzer
|
2023-02-20 10:14:12 +02:00 |
|
Laurențiu Nicola
|
bc45c7659a
|
⬆️ rust-analyzer
|
2023-02-13 13:55:14 +02:00 |
|
arcnmx
|
25242fe93f
|
⬆️ rust-analyzer
Merge commit '368e0bb32f1178cf162c2ce5f7e10b7ae211eb26'
|
2023-01-09 10:36:22 -08:00 |
|
Laurențiu Nicola
|
a2a1d99545
|
⬆️ rust-analyzer
|
2022-11-23 17:24:03 +02:00 |
|
Laurențiu Nicola
|
79923c382a
|
⬆️ rust-analyzer
|
2022-11-09 21:49:10 +02:00 |
|
Laurențiu Nicola
|
a99a48e786
|
⬆️ rust-analyzer
|
2022-10-18 09:12:49 +03:00 |
|
Laurențiu Nicola
|
4f55ebbd4f
|
⬆️ rust-analyzer
|
2022-10-11 10:37:35 +03:00 |
|
Laurențiu Nicola
|
f5fde4df43
|
⬆️ rust-analyzer
|
2022-09-20 17:39:17 +03:00 |
|
Laurențiu Nicola
|
459bbb4222
|
⬆️ rust-analyzer
|
2022-09-13 15:38:11 +03:00 |
|
Laurențiu Nicola
|
65e1dc4d9c
|
⬆️ rust-analyzer
|
2022-09-06 21:20:49 +03:00 |
|
Laurențiu Nicola
|
31519bb394
|
⬆️ rust-analyzer
|
2022-08-23 10:05:52 +03:00 |
|
Laurențiu Nicola
|
8231fee466
|
⬆️ rust-analyzer
|
2022-08-16 11:24:50 +03:00 |
|
Laurențiu Nicola
|
9d2cb42a41
|
⬆️ rust-analyzer
|
2022-08-02 09:05:16 +03:00 |
|
Dorian Scheidt
|
13c83f90ac
|
fix: Don't add braces to 'if' completion in match guard position
When the cursor is in a match arm, but before the fat arrow (=>) token, don't
add braces when autocompleting "if".
fixes #12823
|
2022-07-23 12:25:02 -05:00 |
|
Amos Wenger
|
7e285e1ef5
|
Run cargo fmt
|
2022-07-20 15:06:15 +02:00 |
|
Amos Wenger
|
816f7fe12a
|
Run cargo fix --edition-idioms
|
2022-07-20 15:02:08 +02:00 |
|
bors
|
f3e9b38e26
|
Auto merge of #12646 - lowr:fix/11897, r=lowr
fix: escape receiver texts in completion
This PR fixes #11897 by escaping '\\' and '$' in the text of the receiver position expression. See [here](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#snippet_syntax) for the specification of the snippet syntax (especially [this section](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#grammar) discusses escaping).
Although not all occurrences of '\\' and '$' have to be replaced, I chose to replace all as that's simpler and easier to understand. There *are* more clever ways to implement it, but I thought they were premature optimization for the time being (maybe I should put FIXME notes?).
|
2022-07-20 10:51:31 +00:00 |
|
Ryo Yoshida
|
cfc52adc65
|
Add comments
|
2022-07-20 19:11:14 +09:00 |
|
iDawer
|
a0fd58bbbe
|
Check for local IDs belong to same definition
|
2022-07-17 11:43:08 +05:00 |
|
Lukas Wirth
|
b96f8f18b0
|
fix: Improve self param completion applicability
|
2022-07-16 12:28:41 +02:00 |
|
bors
|
5af3ef527c
|
Auto merge of #12735 - feniljain:fix-completions, r=feniljain
fix(completion): `super::` completion at crate root and module depth aware
- should close #12439
- Suggest super according to the depth in tree
|
2022-07-14 11:53:29 +00:00 |
|
feniljain
|
4cbde4ed8f
|
fix(completion): super:: completion at crate root and module depth
aware
|
2022-07-14 17:07:43 +05:30 |
|
TonalidadeHidrica
|
eaebead296
|
Fix config keys regarding imports in docs
|
2022-07-11 15:43:25 +09:00 |
|
Jonas Schievink
|
6c6ae965ba
|
Update remaining GitHub URLs
|
2022-07-08 15:44:49 +02:00 |
|
Hongxu Xu
|
0360ed53cf
|
check arg_idx >= n_params only if arg_idx >= n_required_params
|
2022-07-07 00:54:46 +08:00 |
|
Hongxu Xu
|
75fb3de310
|
Handle generic args per arg index
Add more test cases for generic args
|
2022-07-07 00:45:22 +08:00 |
|
Hongxu Xu
|
0f2eba54db
|
Show only assoc type args in the correct arg pos
|
2022-07-06 22:58:27 +08:00 |
|
Hongxu Xu
|
441e659aa1
|
Complete associated type only in trait generic arg
Fix tidy check does not work for marks in multiline
|
2022-07-05 21:48:28 +08:00 |
|
bors
|
d101439c77
|
Auto merge of #12627 - yue4u:fix/struct-variant-patterns, r=Veykril
fix: complete enum variants as patterns in pattern path
close #12593
|
2022-07-02 17:18:24 +00:00 |
|
bors
|
d4b79ad77b
|
Auto merge of #12678 - Veykril:flyimport, r=Veykril
fix: Trigger flyimport completions in item lists again
Fixes https://github.com/rust-lang/rust-analyzer/issues/12656
|
2022-07-02 14:20:36 +00:00 |
|
Lukas Wirth
|
cd42b20ce3
|
fix: Trigger flyimport completions in item lists again
|
2022-07-02 16:20:26 +02:00 |
|
yue4u
|
622b516c74
|
fix: variants rendering in pattern path
|
2022-07-02 20:31:24 +09:00 |
|
bors
|
994f3cf74d
|
Auto merge of #12636 - xuhongxu96:fix-12148, r=Veykril
complete raw identifier with "r#" prefix
Fix #12148
Escape Names and Paths used in `insert_text`/`insert_snippet` while rendering the completion items.
|
2022-07-01 14:55:51 +00:00 |
|
Ryo Yoshida
|
393a18b8ce
|
fix: escape receiver texts in format string completion
|
2022-06-27 23:20:23 +09:00 |
|
Ryo Yoshida
|
491e6eaf9e
|
fix: escape ${receiver} when completing with custom snippets
|
2022-06-27 23:20:17 +09:00 |
|
bors
|
4c3954682d
|
Auto merge of #12635 - antogilbert:tgt_feat, r=Veykril
Correct target_feature completion
I changed the `target_feature` to match the description given in #12616.
|
2022-06-27 12:28:36 +00:00 |
|
Manas
|
7f1fac7c26
|
fix: deduplicate cfg completions
cfg completions are duplicated if they are set with multiple values.
This patch deduplicates them.
|
2022-06-27 16:17:06 +05:30 |
|
Hongxu Xu
|
f536766efb
|
complete raw identifier with "r#" prefix
|
2022-06-26 14:45:30 +08:00 |
|
Antonello Palazzi
|
e4e2a46773
|
Correct target_feature completion
|
2022-06-26 00:50:41 +01:00 |
|
Lukas Wirth
|
7a0774defa
|
internal: Simplify some completions
|
2022-06-20 21:55:33 +02:00 |
|
Lukas Wirth
|
8b078986dc
|
Reimplement auto-ref completions for fields
|
2022-06-20 20:22:51 +02:00 |
|
Lukas Wirth
|
46d22719fc
|
Remove pattern rendering hack
|
2022-06-20 20:16:40 +02:00 |
|
Lukas Wirth
|
06ee4d6222
|
fix: Fix auto-ref completions inserting into wrong locations
|
2022-06-20 18:59:57 +02:00 |
|
Lukas Wirth
|
6e9c963348
|
internal: Lift out IdentContext from CompletionContext
|
2022-06-20 17:41:04 +02:00 |
|
Lukas Wirth
|
bcf10cde13
|
internal: Remove previous_token field from CompletionContext
|
2022-06-20 15:07:48 +02:00 |
|
Lukas Wirth
|
90483321ee
|
Remove some usages of Completions::add_resolution
|
2022-06-20 14:47:30 +02:00 |
|
Lukas Wirth
|
7685245282
|
Even more completion context filtering
|
2022-06-20 14:23:46 +02:00 |
|
Lukas Wirth
|
ce5859e387
|
Lift out PathKind variant fields into structs
|
2022-06-20 13:29:13 +02:00 |
|
Lukas Wirth
|
5c69df93df
|
Split remaining completion calls on the context kinds
|
2022-06-20 13:17:30 +02:00 |
|
Lukas Wirth
|
c1446a2743
|
Move CompletionContext::impl_def into corresponding entities
|
2022-06-18 10:45:53 +02:00 |
|
Lukas Wirth
|
83e8f3ac30
|
Move CompletionContext::incomplete_let into PathKind::Expr
|
2022-06-18 10:19:04 +02:00 |
|
Lukas Wirth
|
7369e5120d
|
Move CompletionContext::function_def into PathKind::Expr
|
2022-06-18 09:54:03 +02:00 |
|
Lukas Wirth
|
309ecdd71c
|
internal: NameRefKind classification is not optional
|
2022-06-18 08:58:47 +02:00 |
|
Lukas Wirth
|
0665428b4e
|
minor: Simplify
|
2022-06-18 01:15:08 +02:00 |
|
Lukas Wirth
|
173bb10a76
|
internal: Split flyimport into its 3 applicable contexts
|
2022-06-18 00:47:28 +02:00 |
|
Lukas Wirth
|
00fdb4a3d8
|
Only run completion functions if their corresponding context is active
|
2022-06-17 23:36:39 +02:00 |
|
Lukas Wirth
|
d97a8ee865
|
Remove superfluous early returns
|
2022-06-17 17:49:25 +02:00 |
|
Lukas Wirth
|
85b68b1f7d
|
Inline PathQualifierCtx
|
2022-06-17 17:27:12 +02:00 |
|
Lukas Wirth
|
d6f161ffa9
|
internal: Collapse lift is_infer_qualifier into Qualified variant
|
2022-06-17 17:15:29 +02:00 |
|
Lukas Wirth
|
2f2ea77d88
|
Move existing_derives into PathKind::Derive
|
2022-06-17 16:56:21 +02:00 |
|
Lukas Wirth
|
531060f103
|
internal: Collapse completion ctx path qualifier and is_absolute_path into enum
|
2022-06-17 16:36:22 +02:00 |
|
Lukas Wirth
|
85363d18e8
|
Simplify
|
2022-06-17 16:22:51 +02:00 |
|
Lukas Wirth
|
f201a40492
|
Remove ImmediateLocation in favor of PathKind::Type
|
2022-06-17 15:09:48 +02:00 |
|
Lukas Wirth
|
6b246292ca
|
Move more ImmediateLocation::TypeAnnotation into PathKind::Type
|
2022-06-17 11:31:36 +02:00 |
|
Lukas Wirth
|
6e07b17f69
|
Introduce NameRefKind for completions
|
2022-06-17 10:45:19 +02:00 |
|
Hongxu Xu
|
534d71a852
|
disable private editable in TEST_CONFIG by default
adjust test_visibility_filter test case
|
2022-06-16 08:52:57 +08:00 |
|
bors
|
9ef01d0895
|
Auto merge of #12490 - yue4u:fix/show-enum-in-fresh-use-tree, r=Veykril
fix: complete non-std enum at the start of `use` completions
close: #12421
|
2022-06-10 20:33:17 +00:00 |
|
Lukas Wirth
|
76ae5434fa
|
internal: Bump Dependencies
|
2022-06-10 17:30:02 +02:00 |
|
yue4u
|
2942863709
|
feat: append :: after
|
2022-06-09 16:45:46 +09:00 |
|
yue4u
|
55bc693356
|
fix: show non-std enum in a fresh use tree completion
|
2022-06-08 20:55:16 +09:00 |
|
Lukas Wirth
|
0be31d945e
|
fix: Fix trait impl completions using wrong insert position
|
2022-06-05 20:29:36 +02:00 |
|
Lukas Wirth
|
a2a74bf278
|
Remove some of the unnecessary helpfer functions from CompletionContext
|
2022-06-03 20:49:25 +02:00 |
|
Lukas Wirth
|
a0c1816e3a
|
Simplify
|
2022-06-03 19:55:30 +02:00 |
|
Lukas Wirth
|
98c0578f15
|
Move trait_impl completion analysis into CompletionContext
|
2022-06-03 19:49:02 +02:00 |
|
Lukas Wirth
|
2a60b8452e
|
Deduplicate
|
2022-06-03 16:33:37 +02:00 |
|
Lukas Wirth
|
522f66545f
|
Remove prev-sibling completion machinery
|
2022-06-03 16:25:37 +02:00 |
|
Lukas Wirth
|
6550a241fb
|
More precise where keyword completions
|
2022-06-03 16:11:26 +02:00 |
|
Lukas Wirth
|
c522669f00
|
Remove dead code
|
2022-06-03 15:46:17 +02:00 |
|
Lukas Wirth
|
c5dcc77b40
|
Fix visibility mods not being completed for field defs
|
2022-06-03 15:42:28 +02:00 |
|
Lukas Wirth
|
519ac81b57
|
internal: Move most remaining keyword completions to item list completions
|
2022-06-03 15:15:21 +02:00 |
|
Lukas Wirth
|
0327df224b
|
More precise completion filtering
|
2022-05-30 16:01:17 +02:00 |
|
Lukas Wirth
|
86d1d9067e
|
fix: Insert whitespace into trait-impl completions when coming from macros
|
2022-05-24 22:56:33 +02:00 |
|
Lukas Wirth
|
6f006b7524
|
Simplify
|
2022-05-24 21:58:47 +02:00 |
|
Lukas Wirth
|
6a8b8a6039
|
internal: Refactor our record pat/expr handling in completion context
|
2022-05-24 13:24:36 +02:00 |
|
Lukas Wirth
|
697ade6f8d
|
internal: Simplify DotAccess representation in completions
|
2022-05-24 11:54:50 +02:00 |
|
Jonas Schievink
|
9bd11459ba
|
Revert "Auto merge of #12149 - jonas-schievink:literally-just-a-literal, r=jonas-schievink"
This reverts commit cc9ae2b89e , reversing
changes made to 7dfd1cb572 .
|
2022-05-13 15:08:14 +02:00 |
|
bors
|
254bfdd2c3
|
Auto merge of #12204 - Veykril:completions, r=Veykril
internal: Move keyword expressions to expr completions module
|
2022-05-10 13:08:27 +00:00 |
|
Lukas Wirth
|
b2abe1bca1
|
Move keyword expressions to expr completions module
|
2022-05-10 15:00:58 +02:00 |
|
bors
|
4a4e9c0ae0
|
Auto merge of #12203 - Veykril:completions, r=Veykril
internal: Simplify
|
2022-05-10 12:36:46 +00:00 |
|
Lukas Wirth
|
40bb8006cd
|
Don't parse files in module completion
|
2022-05-10 14:31:43 +02:00 |
|
Jonas Schievink
|
5a2398d775
|
Don't show assoc. type binding completions when invalid
|
2022-05-09 18:12:12 +02:00 |
|
Jonas Schievink
|
2156815f12
|
Make completion work too
|
2022-05-09 17:39:13 +02:00 |
|
Lukas Wirth
|
a0fc649269
|
fix unreachable pub
|
2022-05-07 15:50:01 +02:00 |
|
Lukas Wirth
|
44c3cc100b
|
Merge the different identifier contexts into one enum
|
2022-05-07 15:06:59 +02:00 |
|
Lukas Wirth
|
99fa37d6e3
|
Split namelike into the corresponding completion contexts
|
2022-05-07 14:16:03 +02:00 |
|
Lukas Wirth
|
6a045c7029
|
Introduce NameRefContext
|
2022-05-07 13:46:43 +02:00 |
|
Lukas Wirth
|
1dc83f5a90
|
minor: Move inferred type completions
|
2022-05-07 12:59:26 +02:00 |
|