-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
Tasks: Configure Task opens menu with one item #40508
Comments
For the configure it would make sense. To terminate or start we wanted to keep it consistent so that users see what will happen. |
Should also include "Show Output". |
To verify, open a folder that only has one task in it. Execute the Configure Task command. Verify that the tasks.json is opened to that one tasks and that no additional quick pick choose a task is shown. |
It can't be avoided without changes to the quick pick (@chrmarti) since we need to pass a promise for the quick pick items into the quick pick,. If I just pass an array of quick pick items into the quick pick then in cases where there are multiple tasks there is zero UI feedback that the tasks are loading. |
@alexr00 You could keep the old QuickPick around until you know how many items you have and let that indicate progress. Currently you would have to use the new interfaces to show progress in that existing QuickPick: https://github.com/Microsoft/vscode/blame/master/src/vs/platform/quickinput/common/quickInput.ts#L142 |
Good pointer, thank you! |
Will make the change with #83648 |
Looks good. |
I only have one tasks file with one task, so when I do Tasks: Configure Task, why does it pop up a menu with one option that I have to select?
With version 0.1.0, the only option is to open the tasks file (regardless of the number of defined tasks). With 2.0.0 it lists the defined tasks, but if I only have one, I shouldn't need to select it from the list.
It's not exactly high priority, or even particularly frustrating, but it seems wrong.
Maybe if I type in a new task name it should create an empty task in the config file, with the correct format?
The text was updated successfully, but these errors were encountered: