Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Undefined. Implement with the following snippet' error when using cucumberautocomplete.customParameters #504

Open
Kemot7 opened this issue Jul 16, 2024 · 0 comments

Comments

@Kemot7
Copy link

Kemot7 commented Jul 16, 2024

Describe the bug
I don't know why, but I can't use the proper names for "parameter" when configuring cucumberautocomplete.customParameters.
I get an error every time:
Undefined. Implement with the following snippet:
image

To Reproduce
I am using TypeScript 5.5.2
A simple example, taken from the documentation:

Cucumberautocomplete part of VSCode settings:

   "cucumberautocomplete.customParameters": [
    {
      "parameter": "{ab}",
      "value": "(a|b)"
    }
  ],

Gherkin step line

When('I select {ab}',
  async (nameOfOption: string): Promise<void> => {
    console.log(`Selected option ${nameOfOption}:`);
  }
);

Step definition:
And I select b

Note
If I change {ab} to {word} then everything works.
However, I can't apply any custom name (only those defined by default)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant