rust-analyzer/crates/ide-assists/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
..
handlers Auto merge of #18031 - roife:suggest-name-in-completion, r=Veykril 2024-09-03 05:45:53 +00:00
tests Update generated doctests 2024-08-31 10:17:37 +01:00
utils refactor: move ide_assist::utils::suggest_name to ide-db 2024-09-03 05:21:05 +08:00
assist_config.rs Simplify 2024-07-22 09:54:31 +02:00
assist_context.rs Encode edition within FileId in the hir layer 2024-07-18 08:49:10 +02:00
lib.rs Add explicit enum discriminant assist 2024-08-31 10:17:37 +01:00
tests.rs Simplify FileDelegate 2024-08-05 13:03:03 +02:00
utils.rs refactor: move ide_assist::utils::suggest_name to ide-db 2024-09-03 05:21:05 +08:00