farre / midas

A GDB/MI Visual Studio Code Debug Adapter
MIT License
29 stars 1 forks source link

[Feature Request] Sorting order when selecting rr traces #193

Closed sj-raima closed 7 months ago

sj-raima commented 7 months ago

This is very low priority.

Background: I believe the order rr traces are listed have changed with later versions of Midas. It used to be in the order the recordings where made. Now they are in sorted order. I liked the old order better.

The latest-trace should always be listed at the top.

I suggest an element in the the launch configuration "traceOrder" that can take the values "standard", "sequential", or "natural".

Standard would be compared character by character, sequential would be based on when the recording was made, and natural where numeric values would be sorted naturally (a9a < a10a).

There could also be a button next to the selection window that can be clicked and it would cycle trough the three options (and preserve this in the settings).

theIDinside commented 7 months ago

Thank you for this issue. A bug had snuck in when solving a previous feature request (being able to debug during recording) which lost the ordering of the tracees. What's been added to 0.20.1 is a sort-by-age, having the newest first.

When it comes to the drop down, unfortunately we don't have that much customizability, we're at the mercy of vscode.

It seems as though latest-trace choice has disappeared from the 0.20.1 for some reason (though the actual latest trace is always the first one now)