Describe the bug

The steps in my Feature files are not linking to the step definitions in the PHP files when using VSCode.
I installed the following VSCode extension, which successfully provides syntax highlighting, but the linking between Steps in Feature files and the step definitions / implementations is not working, with VSCode providing a "Unable to find Step..." warning message: https://marketplace.visualstudio.com/items?itemName=alexkrechik.cucumber...
Also related, when writing new steps in the Feature files, the only autocomplete is for the Gherkin term (Given/When/Then/etc.) but not for the Step. That said, the tests do run, so the Feature files are properly related to the step definitions at run time.
The syntax highlighting _is_ also working, so some aspects of the extension are being applied.

I opened this issue also against the VSCode extension: https://github.com/alexkrechik/VSCucumberAutoComplete/issues/427
At a minimum, it might be helpful to have explicit documentation for how to populate the behat.yml file to provide relationships between the Features and the Step definitions / implementations in PHP. I configured the VSCode extension as per the extension's instructions, so I'm led to believe this is an issue with the configuration of the behat.yml setup.

To Reproduce

Steps to reproduce the behavior:
1. Write a Scenario with a Step that is defined in the PHP step definition file.
2. Notice that, while typing, no autocomplete suggestions are suggested.
3. Once the Step is fully written, try clicking the step to navigate to the implementation of the step definition.
4. Notice that VSCode displays a warning that it was "Unable to find step for..."

Expected behavior

When I start typing a new step in the Feature file, I expect it to suggest autocomplete for "I run cron" when I start typing "Given I run cr".
When I have a Step written in the Feature file, such as "Given I run cron" I expect it be able to click it to link back to the step definition.

Snippets

Feature file example `frontpage.feature` at `/tests/behat/features/pages/frontpage.feature` with step `Given I run cron` does not link to the step definition / implementation in vendor/drupal/drupal-extension/src/Drupal/DrupalExtension/Context/DrupalContext.php

Behat config

default:
  suites:
    default:
      contexts:
        - FeatureContext
        - Drupal\DrupalExtension\Context\ConfigContext
        - Drupal\DrupalExtension\Context\DrupalContext
        - Drupal\DrupalExtension\Context\MinkContext
        - Drupal\DrupalExtension\Context\MarkupContext
        - Drupal\DrupalExtension\Context\MessageContext
        - Drupal\DrupalExtension\Context\MailContext
        - Drupal\DrupalExtension\Context\RandomContext
  extensions:
    Drupal\MinkExtension:
      default_session: goutte
      browser_name: chrome
      goutte: ~
      base_url: http://nginx
    Drupal\DrupalExtension:
      api_driver: drupal
      drupal:
        drupal_root: web
      text:
        username_field: "Email"
        password_field: "Password"
        log_in: "Log in"
        log_out: "Log out"
        login_url: "/user/login"
        log_in_field_value: "mail"
      selectors:
        logged_in_selector: "body.user-logged-in"

Cucumberautocomplete part of VSCode settings:

{
    "cucumberautocomplete.steps": [
        "tests/behat/features/bootstrap/**/*.php",
	"vendor/drupal/drupal-extension/src/Drupal/DrupalExtension/Context/**/*.php"
    ],
    "cucumberautocomplete.syncfeatures": "tests/behat/features/**/*.feature",
    "cucumberautocomplete.strictGherkinCompletion": false,
    "cucumberautocomplete.strictGherkinValidation": false,
    "cucumberautocomplete.smartSnippets": true,
    "cucumberautocomplete.customParameters": [],
    "cucumberautocomplete.skipDocStringsFormat": true,
    "cucumberautocomplete.formatConfOverride": {},
    "cucumberautocomplete.onTypeFormat": true,
    "editor.quickSuggestions": {
        "comments": false,
        "strings": true,
        "other": true
    },
    "cucumberautocomplete.gherkinDefinitionPart": "(Given|When|Then|And)\\(",
    "cucumberautocomplete.stepRegExSymbol": "'"
}

Step definition:

Example of step definition:

/**
   * Example.
   *
   * @Given I run cron
   */
  public function assertCron() {
    $this->getDriver()->runCron();
  }

Gherkin step line

Scenario: Run cron
    Given I run cron
    And I go to the homepage
    Then the response status code should be 200

Comments

omarabed created an issue.