cucumber / cucumber/vscode

Scope paths where step definition snippets are generated

Open
#242 5 comments 0 reactions 0 assignees View on GitHub
:zap: enhancement
Dominant language
TypeScript
Stars
88
Forks
33
PR merge metrics
No merged PRs in 30d

Description

### 🤔 What's the problem you've observed?

When using a package that provides a list of gherkins, and when having custom gherkin, then the step definition will suggest both the package's step definition files and the local files. Where it should be only the local files, or a specified list of files.

```json
"cucumber.glue": [
// writable
"uuv/cucumber/**/*.ts",

"node_modules/@uuv/*/src/cucumber/step_definitions/*/unsafe/**/_en-*.ts",
"node_modules/@uuv/*/src/cucumber/step_definitions/*/generated/en/*.ts",
"node_modules/@uuv/*/src/cucumber/step_definitions/*/generated/enriched/*/*.ts"
],
```
![image](https://github.com/user-attachments/assets/c6dfb59d-375c-4e54-9177-027744cf8fe8)

### ✨ Do you have a proposal for making it better?

I am thinking of 2 solutions:
- Split the `glue` property into 2 properties
- Make the `glue` property allow having object syntax, where we can add a key called `showInAutoCompletion` or something similar

### 📚 Any additional context?

I am using [uuv](https://github.com/Orange-OpenSource/uuv), so this issue is not wide spread yet

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.