alexkrechik / VSCucumberAutoComplete

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

Trailing space after escaped pipe character is being removed when user saves the feature file #444

Closed himanshuG-92 closed 4 months ago

himanshuG-92 commented 2 years ago

Describe the bug I have some scenario where I need to match string which contain pipes with whitespaces both the side, but when I am trying to escape pipe then trailing white space which I need to have it in the string is also removed.

Expected behavior

Scenario Outline : Verify passed string
        Given Some situation
        When I do some stuff with "<title>"
        Then expected thing happens
Examples:
       |title         |
       |abc \| xyz|

Actual behavior

Scenario Outline : Verify passed string
        Given Some situation
        When I do some stuff with "<title>"
        Then expected thing happens
Examples:
       |title        |
       |abc \|xyz|

Issue While saving the feature file, trailing whitespace after escape character (pipe '|' ) is removed but as it should not be. As scenario needs to have string "abc | xyz" as input.

alexkrechik commented 2 years ago

Should be fixed after the 2.16.0 release

meskmanz commented 1 year ago

Does some workaround exist?

VictorVermeulen commented 1 year ago

Does some workaround exist?

Did you find something?

evozniak commented 1 year ago

Does some workaround exist?

For me only saving without formatting.

viktor-silakov commented 6 months ago

I have same issue

andersonvcv commented 4 months ago

When will it be delivered? Seems like it has been marked as ready since Jul 13, 2022.

andersonvcv commented 4 months ago

Bump @alexkrechik

alexkrechik commented 4 months ago

Bump @alexkrechik

Unfortunately, numerous issues had piled up due to outdated libraries, making local testing of new features impossible. Consequently, I had to address https://github.com/alexkrechik/VSCucumberAutoComplete/issues/483. I should retest all the scenarios and make some additional refactoring. But the libs update is done, and tests are up.

alexkrechik commented 4 months ago

This issue is to be fixed or implemented in the 3.0.0 version of the extension. If this issue is unresolved or there are additional notes, please create a new ticket with the necessary details.