Used Visual Studio
Visual Studio 2026
Are the latest Visual Studio updates installed?
Yes
Content of reqnroll.json (if present)
{
"$schema": "https://schemas.reqnroll.net/reqnroll-config-latest.json",
"bindingCulture": {
"name": "en-GB"
},
"ide": {
"editor": {
"gherkinFormat": {
"indentAndSteps": false,
"indentSteps": true
}
}
}
}
Issue Description
When regex flags/modifiers are use in a step definitions (e.g. (?i)) the auto fill incorrectly detects the flag as a capture group:
[Then(@"(?i)Do not receive mimic messages from DRS until base offset ""(.*)""")]
public void ThenDoNotReceiveMessagesFromDRSBaseOffset(TimeSpan offset, Table table) { }
The resultant auto fill incorrectly place the TimeSpan and Table vars:
And [TimeSpan]Do not receive mimic messages from DRS until base offset "[Table]"
Note that the the extension does not detect the auto filled expresion as valid
Replacing it with the correct form the regex is detected.
Steps to Reproduce
Use extension version 2026.1.477
Use VS 2026 18.3.2
Create a step definition with regex modifier (?<modifer>) and use auto fill step.
Link to a project repository that reproduces the issue
No response
Used Visual Studio
Visual Studio 2026
Are the latest Visual Studio updates installed?
Yes
Content of reqnroll.json (if present)
{ "$schema": "https://schemas.reqnroll.net/reqnroll-config-latest.json", "bindingCulture": { "name": "en-GB" }, "ide": { "editor": { "gherkinFormat": { "indentAndSteps": false, "indentSteps": true } } } }Issue Description
When regex flags/modifiers are use in a step definitions (e.g.
(?i)) the auto fill incorrectly detects the flag as a capture group:The resultant auto fill incorrectly place the
TimeSpanandTablevars:Note that the the extension does not detect the auto filled expresion as valid
Replacing it with the correct form the regex is detected.
Steps to Reproduce
Use extension version
2026.1.477Use VS 2026
18.3.2Create a step definition with regex modifier
(?<modifer>)and use auto fill step.Link to a project repository that reproduces the issue
No response