cucumber / cucumber/vscode

Omit quotations from string parameter suggestions

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

Description

### 👓 What did you see?

When there is a step with Cucumber expression {string} then after selecting this suggestion:
1. all text including double quotes is selected
2. VS code is suggesting some values for parameter itself (I didn't find out what is mechanism e.g from currently opened file etc)

![image](https://user-images.githubusercontent.com/1698263/210766223-aee017fd-a43d-4a8d-b34e-8a1cbbc4a9e6.png)

![image](https://user-images.githubusercontent.com/1698263/210766439-5a2c3168-110e-4cc3-bf32-b0eab2711961.png)

### ✅ What did you expect to see?
1. only text inside double quotes is selected
2. default value should be just empty string because there is very little chance to have valid suggestion for parameter

Surprisingly it works for regular expression e.g /^PATCH request to "(.*)" with body:$/
Also it's ok with Cucumber expression {int} because there is no need for double quotes.

### 📦 Which tool/library version are you using?
Cucumber plugin: v1.7.0, VS code: 1.74.2

### 🔬 How could we reproduce it?

Steps to reproduce the behavior:

Install Cucumber extension v1.7 onto latest VS Code
Have step definition with Cucumber expression {string}
Create any feature file
Use autocomplete suggestion for this step

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.