Skip to content

Fill fields triggered from mid-item leaves {} appended when completion happens #15607

Open
@nuke-web3

Description

@nuke-web3

See helix-editor/helix#8263 for the details (I assumed wrongly this was an IDE issue) for a minimal viable example of the issue and feat req.

image
triggered the first option:
image

I would think the empty {} should be omitted.

I also would think that completion options for the incomplete struct name should include one that completes the name and the fields populated with todo!() rather than ().

This is a bug, but a tiny feature request to tweak the behavior of the suggestions when completing an item that has fields that can be filled in.
rust-analyzer version: rust-analyzer 1.72.0 (5680fa1 2023-08-23)

rustc version: rustc 1.72.0 (5680fa18f 2023-08-23)

relevant settings: None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions