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

Cannot navigate to step from feature file #479

Closed leibson closed 5 months ago

leibson commented 5 months ago

Describe the bug Installed version v2.15.2 of the Extension in VS Code. Using C#. I have a C# project that was built in VS Studio with SpecFlow, but I want to run it in VS Code. I created a settings.json with the configurations for the steps path. Cannot get to the code from the feature file.

To Reproduce Steps to reproduce the behavior:

  1. Install the extension.
  2. Edit the settings.json as shown below.
  3. Open a feature file in the path C:\git\xxxx\xxx\Features\xxx\xxx.feature
  4. Click on a step.
  5. Right-click -> Go to code (F12)

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Cucumberautocomplete part of VSCode settings:

    "cucumberautocomplete.steps": "Steps\\*.cs",
    "cucumberautocomplete.syncfeatures": "Features\\**\\*.feature"

Step definition: If applicable, add example of step definition:

    [Given(@"machine details are")]

Gherkin step line If applicable, add step line from gherkin file And machine details are

leibson commented 5 months ago

I simply used the User settings rather than Workspace, and it worked!