问题:
-即使步骤定义可用并且在settings.json文件中正确提及
,也会在功能文件中显示线条-转到步骤定义,并且未显示“查看步骤”定义
预期的行为:
应该仅对没有步骤定义的步骤显示用户弯曲的行
使用右键单击“转到步骤定义”选项,用户应该能够从功能文件转到步骤定义
Settings.json文件:
{
"cucumberautocomplete.steps": ["stepDefinitions/*.ts"],
"cucumberautocomplete.syncfeatures": "featureFiles/*feature",
"cucumberautocomplete.strictGherkinCompletion": true,
"cucumberautocomplete.strictGherkinValidation": true,
"cucumberautocomplete.smartSnippets": true,
"cucumberautocomplete.stepsInvariants": true,
"workbench.iconTheme": "vscode-icons",
"files.autoSave": "afterDelay",
"cucumberautocomplete.customParameters": [
]
}
我的项目结构:
-PROJECT NAME
-featureFiles
-features1.feature
-features1.feature
-stepDefinitions
-stepDefintions_1.ts
-stepDefintions_2.ts
-stepDefintions_3.ts
-pageObjects
-logs
-configFiles
-commonUtlities
-node_modules
-reports
-package.json
-ts-config.json