Describe the bug
Steps can be given using the star notation.
If such steps are in the Background section, auto format seems to mess with the indentation.
To Reproduce
Enter the snippet
Feature: a
Background:
And first
* second
Save
It gets reformatted to
Feature: a
Background:
And first
* second
The same happens if you omit the And step and just have one asterisk step
Expected behavior
Star notation is indented correctly in the Background section
Screenshots
If applicable, add screenshots to help explain your problem.
Cucumberautocomplete part of VSCode settings:
default settings
Step definition:
If applicable, add example of step definition:
When(/^I rename the run to "([^"]*)"$/, (name) =>
// ... whatever
);
Gherkin step line
If applicable, add step line from gherkin file
When I rename the run to "([^"]*)"
Describe the bug Steps can be given using the star notation. If such steps are in the Background section, auto format seems to mess with the indentation.
To Reproduce
The same happens if you omit the
And
step and just have one asterisk stepExpected behavior Star notation is indented correctly in the
Background
sectionScreenshots If applicable, add screenshots to help explain your problem.
Cucumberautocomplete part of VSCode settings: default settings
Step definition: If applicable, add example of step definition:
Gherkin step line If applicable, add step line from gherkin file
When I rename the run to "([^"]*)"