I am building a Cypress Framework using the @badeball/cypress-cucumber-preprocessor node package and the Cucumber (Gherkin) Full Support vs code extension.
When autocompleting a step that contains {string} I would like to replace {string} with "" instead of ("|')[^\1]*\1 or ("|')\1
My .cypress-cucumber-preprocessorrc.json file is as follows:
{
"json": {
"enabled": true
},
"stepDefinitions": "**/*.steps.js"
}
My settings.json file is as follows:
{
"explorer.sortOrder": "filesFirst",
"cucumberautocomplete.steps": "**/*.steps.js",
"cucumberautocomplete.syncfeatures": "**/features/*.feature",
"cucumberautocomplete.strictGherkinCompletion": true,
"cucumberautocomplete.strictGherkinValidation": true,
"cucumberautocomplete.smartSnippets": true,
"cucumberautocomplete.stepsInvariants": true,
"cucumberautocomplete.skipDocStringsFormat": true,
"cucumberautocomplete.onTypeFormat": true,
"editor.quickSuggestions": {
"comments": false,
"strings": true,
"other": true
},
"cucumberautocomplete.gherkinDefinitionPart": "(Given|When|Then)\\("
}
For example, I have a step definition as follows:
When("I click the {string}", (element) => {
//some code
});
With the above settings and smartSnippets set to true I get the following autocompleted step:
When I click the ("|')\1
With the above settings but changing smartSnippets to false I get the following autocompleted step:
When I click the ("|')[^\1]*\1
What I would like to get is this autocompleted step:
When I click the ""