-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Skip quick picker when there is only one task to select from #47853
Conversation
I had this a long time ago but then users complained that they want to have a consistent behavior independent of 1 or n tasks :-). So if we add this back it has to go behind a setting. |
@dbaeumer Sure. Should this be enabled or disabled by default? |
To not break anyone it should be off by default. |
Done. |
@sylveon One minor thing. The setting should be in the task namespace not in the quickPick. However there might be a problem since tasks is overloaded with tasks.json. Have you tried |
@dbaeumer I added a Using |
Sorry for the long delay. Using task as a workaround makes perfect sense to me. |
Done |
@sylveon: I looked at the PR yesterday and I noticed that the tasks are now resolved outside of the quick pick. I see why this is happening however this results in the fact that the user has no progress feedback as long as the promise is resolved. This might not be so problematic for terminate and restart, however it will be for run since this on first execution might take some seconds. I need to think about what we can do here. Merging this is as is will make users unhappy where task resolving takes some time. |
Came from #51699 Might it make sense then, to solve the issue with quick picker if it's used for run, to add a settings option for run that's separate from the restart/terminate settings option? Until can find a better solution that is. |
Not for this milestone, pushing out to August |
Perhaps it's possible to do something like this. If the promise in the quick pick resolves without the user picking something, and there's only one option that results out of it, pick it. But if there's multiple, don't. |
@sylveon feels hacky, and against the way other stuff works, where if the user doesn't take a second action it cancels it. |
Cleaning up milestone |
Update 2: @alexr00 Thanks for the response, I investigated this in more detail tonight and realised actually task had run to completion by the time I performed the restart shortcut. If restart occurred before completion the picker was not shown (desired behaviour). Apologies as I should have picked this up before contributing here. My personal preference would be for restart to behave the same before or after task completion but this is not worth a feature request.... Update: @alexr00 would you like me to open a new issue for this comment as I don't think it's really in the right place? I would simply request that task keyboard shortcuts such as Just hit issue in this area (actually probably more like #51699 but that has been deemed a dup of this). I expected my Very surprised to see the picker.... which means the two are inconsistent. NB: I'm fine and even agree with a single task picker when selecting Run/Restart Tasks from UI, so this issue is a bit different. Maybe I should open a new issue (or would that be seen as a dup)? |
@alexr00 can I loop you in here? |
@markfinlabs, it sounds like you are seeing a different issue. Yes please do open a new issue for it and I will take a look. |
@sylveon thanks for working on this change! I have pushed a different version of it that doesn't resolve the tasks outside of the quick pick. The name of the setting is |
I find it particularly annoying when it asks me what to select from when there's only one choice. This skips the quick picker and proceeds directly when there is only one task to choose from.