Skip to content

Inlay hints acquire font styling from the character that follows them #6380

@dfoxfranke

Description

@dfoxfranke

I have VSCode theme that puts operators in bold. A closure in my code written as |chunk| has an inferred argument type of Result<Bytes, Error>, rendered in my editor as an inlay hint. Correct behavior would be to render the |'s in bold but not anything in between them. Instead, I get a (correctly) regularly-styled chunk but a bold : Result<Bytes, Error>| following it.

The type renders correctly (i.e. not in bold) if I write it out explicitly rather than having it filled in as an inlay hint. So this seems to be an issue particular to inlays, and not a problem with any of the patterns in rust.tmGrammar.json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions