You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Debug: Support launch config grouping and sorting #82332
debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityon-release-notesIssue/pull request mentioned in release noteson-testplan
We could support a group option which would allow to join launch configs together as well as sort them.
We can even have special groups like commandPalette which means that the launch config should only appear in the command palette.
Some other special groups could be hidden - so the launch can only be referenced by compounds, but not launched by the user.
This makes sense. Assigning to October to look into it this milestone.
The group option would be in the launch configuration. We should maybe filter it out before sending it out to the debug adapter. Whoever we already have some "UX" attributes in the configuration so this shuold not be new teritory.
Ability to hide launch configurations from the dropdown and from the command palette (after typing debug )
Ability to group launch configurations / compounds (groups separated by a visible separator)
Ability to sort launch configurations
Here are some proposals how to do that:
We add a attribute presentation in the launch configuration which is a structured object. presentation has the following fields (we can add more later):
visibility: can be hidden, visible, commandPalette
group: open ended string (name of the group which is not visible in the UX, just used for separation and sorting)
order: number used for sorting inside a group3
Note that group and order could potentially be merged into one. Example: 1_groupName@5. Here the group is 1_groupName and 5 is the order. We use this for our commands.
The name presentation is taken from tasksreference, however tasks use group for something else (for what we use compounds for).
João Moreno (@joaomoreno) deep appologies since I did not find time for this before going to Spain (requires some refactoring and is not that low hanging). I'll try to put it on a plan for next milestone.
debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityon-release-notesIssue/pull request mentioned in release noteson-testplan
Activity
isidorn commentedon Oct 11, 2019
This makes sense. Assigning to October to look into it this milestone.
The
groupoption would be in the launch configuration. We should maybe filter it out before sending it out to the debug adapter. Whoever we already have some "UX" attributes in the configuration so this shuold not be new teritory.Related - duplicate #64624
fyi Andre Weinand (@weinand) roblourens
isidorn commentedon Oct 16, 2019
Ok, so let's recap what we want to tackle here:
debug)Here are some proposals how to do that:
presentationin the launch configuration which is a structured object.presentationhas the following fields (we can add more later):visibility: can behidden,visible,commandPalettegroup: open ended string (name of the group which is not visible in the UX, just used for separation and sorting)order: number used for sorting inside a group3Note that
groupandordercould potentially be merged into one. Example:1_groupName@5. Here the group is 1_groupName and 5 is the order. We use this for our commands.The name
presentationis taken fromtasksreference, howevertasksusegroupfor something else (for what we use compounds for).Example
{ "name": "Server", "type": "node", "request": "launch", "program": "${workspaceFolder}/src/debugAdapter.ts", "presentation": { "visibility": "hidden", "group": "1_firstGroup", "order": 3 } }fyi cstavaru grbd Alex Ross (@alexr00) Andre Weinand (@weinand) roblourens João Moreno (@joaomoreno)
Looking forward to the feedback
alexr00 commentedon Oct 16, 2019
In
package.jsonfor ordering of menu items we just havegroup, noorder. Order is instead expressed by @ and then a number:For consistency we could keep that pattern.
cstavaru commentedon Oct 16, 2019
Proposal looks good to me, Alex Ross (@alexr00) may also have a valid point.
isidorn commentedon Oct 25, 2019
João Moreno (@joaomoreno) deep appologies since I did not find time for this before going to Spain (requires some refactoring and is not that low hanging). I'll try to put it on a plan for next milestone.
joaomoreno commentedon Oct 25, 2019
smorel commentedon Nov 13, 2019
Can't wait to see that coming that would be really great!
isidorn commentedon Dec 20, 2019
As suggested in my comment above it is now possible to specify the
presentationof a debug configuration or a compound.For an example usage here is me adopting it for our
launch.jsonin this repo ecc140eWe render seperators between groups, both in the dropdown and in the quick open.
The command palette also respectes these presentation options.
Before:

After:

weinand commentedon Dec 20, 2019
Isidor Nikolic (@isidorn) please explain "redenregin" above.
isidorn commentedon Dec 20, 2019
Andre Weinand (@weinand) sorry! Rendering was the word.
isidorn commentedon Dec 20, 2019
We are now rendering separtors, I have updated the top picture.
Edit: created a test plan item for this
debug: redenr separators also in the select box