rust-analyzer/crates/ide-completion/src
bors 1fddb11f0f Auto merge of #18031 - roife:suggest-name-in-completion, r=Veykril
feat: Suggest name in completion for let_stmt and fn_param

fix #17780

1. Refactor: move `ide_assist::utils::suggest_name` to `ide-db::syntax_helpers::suggest_name` for reuse.
2. When completing `IdentPat`, detecte if the current node is a `let_stmt` or `fn_param`, and suggesting a new name based on the context.
2024-09-03 05:45:53 +00:00
..
completions Auto merge of #18031 - roife:suggest-name-in-completion, r=Veykril 2024-09-03 05:45:53 +00:00
context feat: suggest name in let_stmt and fn_param 2024-09-03 05:22:55 +08:00
render Simplify CompletionRelevance 2024-09-02 13:17:49 +02:00
tests tests: suggesting names in completions for let_stmt and fn_param 2024-09-03 05:23:04 +08:00
completions.rs feat: suggest name in let_stmt and fn_param 2024-09-03 05:22:55 +08:00
config.rs fix: Fix find_path not respecting non-std preference config correctly 2024-08-10 10:32:10 +02:00
context.rs feat: suggest name in let_stmt and fn_param 2024-09-03 05:22:55 +08:00
item.rs Adjust completions scoring 2024-09-02 13:17:52 +02:00
lib.rs Properly account for editions in names 2024-08-16 16:46:24 +03:00
render.rs Simplify CompletionRelevance 2024-09-02 13:17:49 +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 Properly account for editions in names 2024-08-16 16:46:24 +03:00