alexkrechik / VSCucumberAutoComplete

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

Wrong formatting with commented last table row #465

Open josemigallas opened 1 year ago

josemigallas commented 1 year ago

Describe the bug Format Document works well with tables, even with commented rows, except when it is the last row.

To Reproduce Version: 2.15.2 Add a table and comment last row. Then trigger action "Format Document":

  Scenario Outline: Swagger
    Given blah blah blah

    Examples:
      | swagger version |
      # | Swagger 1.2     |
      | Swagger 2       |
      # | OAS 3.0         | Feature not implemented |

Expected behavior No change

Actual behavior

  Scenario Outline: Swagger
    Given blah blah blah

    Examples:
      | swagger version |
      # | Swagger 1.2     |
      | Swagger 2       |
  # | OAS 3.0         | Feature not implemented |

Cucumberautocomplete part of VSCode settings:

{
}