cucumber / cucumber/vscode

Reindexing schedules on every "Go to Definition"

Open
#215 6 comments 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?

Every time I "go to definition" of a step, a reindexing is scheduled which completely blocks VS code features, making it unusable.

### ✅ What did you expect to see?

Reindexing should happen when a step definition file changes, or on window reload or on demand. For larger projects I would prefer the indexation happening once when the editor starts and it can be reindexed manually with "Reload window".

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

```
Visual Studio Code: 1.85.2
CucumberOpen.cucumber-official@1.8.1
stevejpurves.cucumber@0.14.0
```

### 🔬 How could we reproduce it?

Open output channel for "Cucumber Language Server"
Right-click over a feature step and select "Go to Definition", alternatively click the step while pressing down cmd key.

![cucumber](https://github.com/cucumber/vscode/assets/11672286/800b3e01-c675-4af9-8fcf-2e0a4fc96a76)

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.