cucumber / vscode

Official Visual Studio Code Extension for Cucumber
MIT License
66 stars 17 forks source link

Steps with <> parameters are not detected #182

Closed ThinGlass closed 1 year ago

ThinGlass commented 1 year ago

👓 What did you see?

All steps in the feature file are detected and are displayed as suggestions. Except the steps that defined for Scenario Outlines. These steps use parameters and are implemented parsers.parse (for lack of a better option).

✅ What did you expect to see?

I expected to have all steps detected and displayed as suggestions.

📦 Which tool/library version are you using?

Python - 3.11.5 pytest-bdd - 7.0.0 VS Code - 1.84.2 Cucumber (Gherkin) extension - v2.15.2

🔬 How could we reproduce it?

Steps to reproduce the behavior:

  1. Install 'VS Code' version '1.84.2'
  2. Install 'Cucumber (Gherkin) extension' version 2.15.2
  3. Create feature file with scenario outline
  4. Implement steps in step definition file
  5. Check the step detection and auto complete
  6. Steps with parameters are not detected

Scenario Outline: screen_ 2023-11-10 12 46 33 Step definitions: screen_ 2023-11-10 12 59 28

📚 Any additional context?

none

kieran-ryan commented 1 year ago

Hi @massDefect7, as the extension number mentioned is 2.15.2, you appear to be using the Cucumber (Gherkin) Full Support extension. This repository relates to the official Cucumber extension - which is at version 1.7.0 in the Visual Studio Code marketplace.

Note: The official extension does not support diagnostics for whether a step is undefined when using Scenario Outlines - see cucumber/language-service#149.