Skip to content

All braces escaped in generated code #16644

@ronnodas

Description

@ronnodas

Whenever I use an assist that inserts some code, all the braces in it are escaped with slashes. For example, using "Generate foo function" on let bar = foo(); produces:

fn foo() -> _ \{
    todo!()
\}

rust-analyzer version: 0.3.1850-standalone

rustc version: rustc 1.76.0 (07dca489a 2024-02-04)

relevant settings: using VS Code extension, not sure which setting could affect this

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions