Skip to content

Formatting Scenario description does not work depending on the first letter of the lineΒ #297

@DerZyklop

Description

@DerZyklop

πŸ‘“ What did you see?

I just accidentally found out that the formatting only formats some sentences of a scenario description. It depends on the first letter of a line. See:

Image

βœ… What did you expect to see?

All lines indented.

πŸ“¦ Which tool/library version are you using?

cucumberopen.cucumber-official 1.11.0
"@cucumber/gherkin": "26.2.0"

πŸ”¬ How could we reproduce it?

Use this text, and let vscode format it.

Scenario: My scenario

Sentences do not get formatted if they start with the 'wrong' character.
A does get formatted.
B does not get formatted.
C does not get formatted.
D does not get formatted.
E does get formatted.
F does not get formatted.
G does not get formatted.
H does not get formatted.
I does get formatted.
J does not get formatted.
K does not get formatted.
L does not get formatted.
M does not get formatted.
N does not get formatted.
O does not get formatted.
P does not get formatted.
Q does not get formatted.
R does not get formatted.
S does not get formatted.
T does not get formatted.
U does not get formatted.
V does not get formatted.
W does not get formatted.
X does not get formatted.
Y does get formatted.
Z does not get formatted.

πŸ“š Any additional context?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions