Skip to content

formatOnType triggers when writing ; inside a string literal #5832

@FMorschel

Description

@FMorschel

Repro:

void reallyLongFunctionNameThatWillRecieveString(String parameter) {
  reallyLongFunctionNameThatWillRecieveString('testing that adding some chars breaks line');
}

If you copy the above on an 80-character line project and have formatOnType. Once you add a ; anywhere inside the string literal, the formatter is triggered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions