Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Suggest name in completion for let_stmt and fn_param #18031

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

roife
Copy link
Member

@roife roife commented Sep 2, 2024

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.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 2, 2024
@Veykril
Copy link
Member

Veykril commented Sep 3, 2024

Thanks!
@bors r+

@bors
Copy link
Collaborator

bors commented Sep 3, 2024

📌 Commit 35ed65a has been approved by Veykril

It is now in the queue for this repository.

@Veykril Veykril changed the title Suggest name in completion for let_stmt and fn_param feat: Suggest name in completion for let_stmt and fn_param Sep 3, 2024
@bors
Copy link
Collaborator

bors commented Sep 3, 2024

⌛ Testing commit 35ed65a with merge 1fddb11...

@bors
Copy link
Collaborator

bors commented Sep 3, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 1fddb11 to master...

@bors bors merged commit 1fddb11 into rust-lang:master Sep 3, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Complete type name as local name in pattern position
4 participants