You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a .NET project, using primary constructors for a Step Definition class causes the Gherkin steps to be unrecognized by the Cucumber extension, showing them as undefined steps. This issue is confirmed by the fact that reverting the constructors back makes the Go to Step Definition feature work again.
The Go to Step Definition feature does not work when using primary constructors.
Gherkin steps are recognized as undefined steps when Step Definition classes use primary constructors.
✅ What did you expect to see?
Go to Step Definition feature should work even when using primary constructors.
Gherkin steps should be recognized as defined steps when Step Definitions classes use primary constructors.
📦 Which tool/library version are you using?
Visual Studio Code v1.97.2
Official Visual Studio Code Extension for Cucumber v1.10.0
C# 12
Reqnroll
Playwright .NET v1.50
👓 What did you see?
In a .NET project, using primary constructors for a Step Definition class causes the Gherkin steps to be unrecognized by the Cucumber extension, showing them as undefined steps. This issue is confirmed by the fact that reverting the constructors back makes the Go to Step Definition feature work again.
✅ What did you expect to see?
📦 Which tool/library version are you using?
Visual Studio Code v1.97.2
Official Visual Studio Code Extension for Cucumber v1.10.0
C# 12
Reqnroll
Playwright .NET v1.50
🔬 How could we reproduce it?
Pre-conditions:
Steps to reproduce:
📚 Any additional context?
Primary constructors docuementation:
https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-12#primary-constructors
The text was updated successfully, but these errors were encountered: