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

Misaligns job stories (user stories that start with "When") #345

Open kevgo opened 4 years ago

kevgo commented 4 years ago

Describe the bug

Text after the Feature that starts with When is misaligned.

To Reproduce

  1. Create a file test.feature with this content:

    Feature: foo
    
      When doing X
      I want that it also does Y
      So that I can Z
    
    Scenario: a scenario
  2. format the file

Expected behavior

The file format is not changed since it is already properly formatted.

Actual behavior

The first line of the job story is indented:

Feature: foo

    When doing X
  I want that it also does Y
  So that I can Z

  Scenario: a scenario

Screenshots

Screenshot 2020-07-19 at 9 25 43 AM

Cucumberautocomplete part of VSCode settings:

  "cucumberautocomplete.skipDocStringsFormat": true,