Skip to content

slint-formatter: closing brace for struct is moved to the previous line #10647

@NigelBreslaw

Description

@NigelBreslaw

Bug Description

export struct PrinterQueueItem  {
    status: string,
    progress: int,
    title: string,
    owner: string,
    pages: int,
    size: string, // number instead and format in .slint?
    submission-date: string}

Paste the above example. Then on the final line move the closing brace '}' one line down. The expected formatting! Now reformat and the formatter will put it back to how it was in the above example.

Reproducible Code (if applicable)

Environment Details

  • Slint Version:
  • Platform/OS:
  • Programming Language:
  • Backend/Renderer:

Product Impact

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:lspslint-lsp and formating (mO,bT)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions