-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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
Add pinning support for dynamic launch configurations #95836
Comments
What makes sense for me is to add a command in the command palette called
We could also add a Debug View title area Icon for this action when it is applicable. For that we would need a sort of Pin icon. fyi @misolori @alexr00 can you maybe fill me in on how this looks like for tasks? |
@isidorn I suggest to do the same as tasks: have a gear action in the quickpick that adds the config at the end of the launch.json. |
I like the pinning icons und could imagine to use the "pin" in the dynamic debug config sub-quickpick. We have no need for the "pinned" icon because we are not tracking whether an debug config was pinned (because it can be pinned many times for customisation). @alexr00 would you start using the "pin" icon in task land as well? |
Agree. We would use the pin icon only. |
For tasks, it isn't just about pinning, you can actually modify properties of the task when you click the gear. Since tasks have a recently used section, pinning isn't why I'd expect people to add tasks to tasks.json. Instead, they'd add them because they want to change some task properties. I don't find the pin icon to fit this as well as the gear. For tasks, we have the gear entry point in Run Task and we also have a separate command in the command palette: Configure Task. |
@isidorn, it should show on every task in the Run Task quick pick. |
I have a first version of this working. I have pushed it to master so you can try it out.
|
Please note that I am not in love with the whole Pin wording. And for me it is perfectly fine to change this to use a Configure icon and call it "Write" or "Configure". |
@isidorn great stuff! My comments:
|
So for now closing this and we can tackle additional things via issues. |
"Configure Debug Configuration..." sounds odd since configure is in there twice. Maybe just try "Setup Debug Configuration" without the launch.json part? |
Agree the double configure sounds odd. I like having the launch.json to make it clear, and making the hover more concise does not really make a difference imho |
@misolori yes, that duplication is awkward. |
Thanks for suggestions. Since we are an editor, I renamed this to |
Based on the dynamic debug config work of #88230 and #95835 we should now implement support to add dynamic launch configs to the launch.json (aka "pinning support") similar to what is done for tasks.
The text was updated successfully, but these errors were encountered: