-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reindexing schedules on every "Go to Definition" #215
Comments
Thanks for the report @josemigallas! Could you advise:
// The content of a text document has changed. This event is emitted
// when the text document is first opened or when its content has changed.
documents.onDidChangeContent(async (change) => {
this.scheduleReindexing()
if (change.document.uri.match(/\.feature$/)) {
await this.sendDiagnostics(change.document)
}
}) |
Holding the command key while hovering.
I don't think so but here's the list just in case:
|
Thanks for detail @josemigallas - genuine bug! Reason I could not initially reproduce, is once you click 'Go to Definition' and repeat the behaviour, it no longer continuously reindexes. reindexing.movWe will at least need to reassess the event triggering the reindexing in the Cucumber Language Server to understand whether we can eliminate unnecessary reindexing calls. Feel free to take a look at the code as well in case you spot a fix - all inputs welcome. Thanks again! |
My pleasure! |
Any update on this issue please? I have the same issue and reindexing takes about 45 seconds in my project, so it really would help a lot of this issue could be fixed. Thanks Am using VSCode version 1.93, Cucumber 1.10, Cucumber with TypeScript, disabled all other extensions |
Meanwhile this bug is fixed, I am using Cucumber (Gherkin) Full Support: It has its own issues but it may work better for you. |
π 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?
π¬ 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.
The text was updated successfully, but these errors were encountered: