cucumber / cucumber/vscode

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

Open
#297 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
88
Forks
33
PR merge metrics
No merged PRs in 30d

Description

### 👓 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.