alexkrechik / VSCucumberAutoComplete

Cucumber (Gherkin) Full Support Extension for VSCode
https://marketplace.visualstudio.com/items?itemName=alexkrechik.cucumberautocomplete
MIT License
331 stars 82 forks source link

Background steps are wrongly indented if specified with asterisk #252

Closed chbndrhnns closed 5 years ago

chbndrhnns commented 5 years ago

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

  1. Enter the snippet
Feature: a
  Background:
    And first
    * second 
  1. Save
  2. 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 "([^"]*)"

alexkrechik commented 5 years ago

Should be implemented in 2.14.0