alexkrechik / VSCucumberAutoComplete

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

cucumberautocompleted does not work for all step definition #492

Open innkush opened 1 month ago

innkush commented 1 month ago

I have step definitions written in one ts file. Some of them are recognized by cucumberautocomplete, some not. Started reproducing after the last update. What could be the solution for this ? here is my settings.json { "git.autofetch": true, "cucumberautocomplete.pages": {

},

"cucumberautocomplete.steps": [
    "e2e/src/steps/*.ts",  "./node_modules/@gs/wdio-taf/dist/src/steps/**/*.js",
],
"cucumberautocomplete.syncfeatures": "e2e/src/features/**/*.feature",
"json.schemas": [

],
"diffEditor.ignoreTrimWhitespace": false,
"settingsSync.ignoredSettings": [

],
"[javascript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
},
"editor.accessibilitySupport": "off",
"prettier.printWidth": 120,
"[typescript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
},
"prettier.useEditorConfig": false,
"files.autoSave": "onFocusChange",
"diffEditor.renderSideBySide": false,
"npm.packageManager": "npm",
"cucumberautocomplete.customParameters": [
],
"workbench.colorTheme": "Visual Studio Dark",
"[json]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
},
"workbench.settings.applyToAllProfiles": [

],

}

alexkrechik commented 1 month ago

Could you please also provide an example of step from the feature file and step definition from the javascript file that are not recognized?

innkush commented 4 weeks ago

from step definition: Then( /^verify ([^"]*) action record in table$/, async (action: string) => {

from feature file: Then verify Logout action record in table

alexkrechik commented 4 weeks ago

Interesting, but it works for me

Screenshot 2024-05-31 at 17 02 31 Screenshot 2024-05-31 at 17 02 37
innkush commented 4 weeks ago

could you share your vs settings then?

alexkrechik commented 3 weeks ago

I've used super minimal setup:

  "cucumberautocomplete.steps": ["steps/*.js"],
  "cucumberautocomplete.syncfeatures": "*.feature",
  "cucumberautocomplete.customParameters": [
  ],