alexkrechik / VSCucumberAutoComplete

Cucumber (Gherkin) Full Support Extension for VSCode
https://marketplace.visualstudio.com/items?itemName=alexkrechik.cucumberautocomplete
MIT License
331 stars 82 forks source link

Add support to single quoted strings for {string} #232

Closed fcr-- closed 5 years ago

fcr-- commented 5 years ago

To be able to use strings quoted with single quotes for the {string} parameters, it would be good to add an option expanding {string} to '\'[^\']*\''.

Maybe adding a cucumberautocomplete.singleQuoteString option.

alexkrechik commented 5 years ago

Finally decided, that it would be better to use customParameters option here (due to there are so many extensions options and it's better to try to avoid more options adding):

"cucumberautocomplete.customParameters": [{
       "parameter": "{string}",
       "value": "'[^']*'"
   }]
alexkrechik commented 5 years ago

Please reopen issue/write here if suggested way doesn't work to you.