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

Step definition with triple quotes in scala does not work #441

Closed hoangong closed 2 years ago

hoangong commented 2 years ago

Describe the bug Scala """ quotes is not detected correctly.

To Reproduce Steps to reproduce the behavior:

  1. create a step in scala

    
    class MySteps extends ScalaDsl with EN {
    
    Given("""my step""") { () =>
    }

}

2. Feature file does not detect "my step"

Given my step

5. However, if I change step definition to `Given("my step")` it works fine

**Expected behavior**
Work with scala triple quotes

**Screenshots**
![Screenshot 2022-06-25 at 15 15 56](https://user-images.githubusercontent.com/5703525/175777465-1c2b1131-00f0-42d8-a713-7f5ead747d6f.png)

**Cucumberautocomplete part of VSCode settings:**

"cucumberautocomplete.steps": [ "/test//*.scala" ]

alexkrechik commented 2 years ago

"cucumberautocomplete.stepRegExSymbol": "'''" option would help you

hoangong commented 2 years ago

I added "cucumberautocomplete.stepRegExSymbol": "\"\"\"" it helps. thank you