rust-analyzer/crates/ide-completion/src
bors de2ff17bc5 Auto merge of #18360 - roife:safe-kw-3, r=Veykril
feat: better completions for extern blcoks

This PR refactors `add_keywords` (making it much clearer!) and enhances completion for `extern` blocks.

It is recommended to reviewing the changes in order of the commits:

- The first commit (f3c4dde0a4) doesn’t change any logic but refactors parts of the `add_keywords` function and adds detailed comments.
- The second commit (5dcc1ab649) improves completion for `extern` kw and extern blocks.
2024-10-21 17:59:05 +00:00
..
completions minor: refactor completions in item_list 2024-10-22 01:31:57 +08:00
context feat: better completions for extern blcoks 2024-10-21 22:23:16 +08:00
render Extract logic to decide how to complete semicolon for unit-returning function into CompletionContext 2024-09-18 14:07:23 +03:00
tests Auto merge of #18360 - roife:safe-kw-3, r=Veykril 2024-10-21 17:59:05 +00:00
completions.rs feat: suggest name in let_stmt and fn_param 2024-09-03 05:22:55 +08:00
config.rs Prepare for omittiong parts of completion data that need to be resolved 2024-09-23 04:44:31 +03:00
context.rs feat: better completions for extern blcoks 2024-10-21 22:23:16 +08:00
item.rs Add Definition kind for asm register classes 2024-09-05 10:23:00 +02:00
lib.rs Omit completion fields to be resolved later 2024-09-23 05:10:31 +03:00
render.rs Update ide tests 2024-10-21 11:28:19 +02:00
snippet.rs fix: Fix find_path not respecting non-std preference config correctly 2024-08-10 10:32:10 +02:00
tests.rs Prepare for omittiong parts of completion data that need to be resolved 2024-09-23 04:44:31 +03:00