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

Formatting lost when a comment is placed inside a data table of scenraio outline #258

Closed iamthadiyan closed 5 years ago

iamthadiyan commented 5 years ago

Describe the bug Given below is a scenario outline table in which because of a comment inside data table, the last line is not affecting the formatting of the lines above it.

Feature: feature

Scenario Outline: outline
    Given Start to type your Given step here
    When Start to type your When step here
    Then Start to type your Then step here
    Examples:
        | Header 1 | Header 2 | Header 3 |
        | Value 1  | Value 2  | Value 3  |
        # comment
        | Valueadasdasdas 1 | Valueasdasdasd 2 | Valueasdasdas 3 |

To Reproduce Steps to reproduce the behavior:

  1. Copy the above text
  2. Select all 3 .Format Document

Expected behavior

Feature: feature

Scenario Outline: outline
    Given Start to type your Given step here
    When Start to type your When step here
    Then Start to type your Then step here
    Examples:
        | Header 1          | Header 2         | Header 3        |
        | Value 1           | Value 2          | Value 3         |
        # comment
        | Valueadasdasdas 1 | Valueasdasdasd 2 | Valueasdasdas 3 |

PS: I love this plugin, by the way. Excellent work!

alexkrechik commented 5 years ago

Should be fixed in 2.14.0