-
Notifications
You must be signed in to change notification settings - Fork 11
Feature Define Step Command generates async step definition methods #121
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
base: main
Are you sure you want to change the base?
Conversation
…e. Snippet Service creates async method. Wired in to DefineStepsCommand and GoToDefinitionCommand.
… a check-box to switch between sync and async methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to rework this according to the final solution in reqnroll/Reqnroll#876 🙁
|
Parking this; keeping it around temporarily for reference. |
|
@clrudolphi I converted this to draft if that's OK for you :) |
@gasparnagy Now that the extension has the capability to generate async bindings, do you want to now reconsider whether to include a triggering mechanism in the UI? |
It's up to us. Having the config setting solves the immediate need. If someone consistently wants to generate async step definitions they can do now. The real question is how important it is to override the configured style for a concrete case (e.g. you generally want sync step defs, but in one case you want async but you don't like to type the words But we should keep in mind that UI changes have to be very carefully done to avoid breaking existing UI. The UI integration to VS (especially styling) is quite magical. Also all UI change have to be tested both in light and in dark themes. |
|
I tend to agree that the UI is not critical. My only regret is that requiring the use of the config file setting is not very intuitive, obvious, or discoverable. Perhaps in a future version of the extension we provide a settings UI. |
Yes. That is always in my wish list, but requires a lot of work. Maybe we can just add a link to the define steps screen that points to the relevant part of the documentation where the configuration setting is explained... |
Just to add my 2 cents. I think I need for 50% of the cases async. |
🤔 What's changed?
Enhanced the Define Steps command to support generating method stubs that are async.
This honors the reqnroll.json
Tracesetting introduced in Reqnroll PR#876.The DefineStep dialog box now has a check box to indicate whether to use async methods.
⚡️ What's your motivation?
Developer productivity by eliminating the need to edit the generated stubs to support async.
🏷️ What kind of change is this?
♻️ Anything particular you want feedback on?
Haven't changed any documentation yet.
📋 Checklist:
This text was originally taken from the template of the Cucumber project, then edited by hand. You can modify the template here.