cucumber / language-service

Cucumber Language Service
MIT License
18 stars 27 forks source link

Support for named StepArgumentTransformation in C#/Specflow #221

Open itsUndefined opened 5 months ago

itsUndefined commented 5 months ago

👓 What did you see?

Given the following StepArgumentTransformation:

[StepArgumentTransformation(@"(\d+(?:,\s*\d+)*)", Name = "comma_separated_integers")]
public IEnumerable<int> TransformCommaSeparatedIntegers(string input)
{
    return input
        .Split(",")
        .Select(int.Parse);
}

✅ What did you expect to see?

I expected it to be picked up automatically as it's inside a glue file. I instead got the message: Found 0 parameter types in those glue files

📦 Which tool/library version are you using?

Latest CucumberOpen.cucumber-official VSCode extension version ( 1.10.0 ) Latest SpecFlow.NUnit C# package ( 4.0.31-beta )

🔬 How could we reproduce it?

No response

📚 Any additional context?

No response