cucumber / cucumber/vscode

Missing "parameter:cucumber" token for Scenario Outline

Open
#277 1 comment 0 reactions 0 assignees View on GitHub
:bug: bug
Dominant language
TypeScript
Stars
88
Forks
33
PR merge metrics
No merged PRs in 30d

Description

### 👓 What did you see?

The editor does not properly assign the `parameter:cucumber` token to scenario outline parameters when an `Examples` table is provided.

```cucumber
Feature: Base feature

Scenario: Base scenario
Given I am logged in as "string"

Scenario Outline: Assign by appropriate users
Given I am logged in as "string"
And I am logged in as ""

Examples:
| parameter |
| value |
```

![Image](https://github.com/user-attachments/assets/4d1eb863-7c95-4a37-8f15-154c39f620b6)

p.s. I'm taking this issue and will start working on a fix.

### ✅ What did you expect to see?

The `"string"` in the scenario outline should be tokenized as "parameter:cucumber"

### 📦 Which tool/library version are you using?

_No response_

### 🔬 How could we reproduce it?

_No response_

### 📚 Any additional context?

_No response_

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.