Add a key/value pair of: "todo.embedded.view.sort": "label",
Add some todo items like: // TODO: 1. foo at the bottom of a file, // TODO: 2. bar at the top of a file
Observed vs expected behavior
The embedded todo views will show the todos in line order and not label sort order, which is what I was expected having set todo.embedded.view.sort to label.
I was expecting TODO: 1. foo to be at the top of the todo embedded view and TODO: 2. bar to be at the bottom.
But it was the opposite (which is what the result should be if sort order is line).
I thought maybe the todo.embedded.provider was impacting this somehow. My default is set to rg, so I changed it to javascript and observed the same behavior. So changing the provider doesn't seem to have any impact.
Repro step
settings.json
"todo.embedded.view.sort": "label",
// TODO: 1. foo
at the bottom of a file,// TODO: 2. bar
at the top of a fileObserved vs expected behavior
todo.embedded.view.sort
tolabel
.TODO: 1. foo
to be at the top of the todo embedded view andTODO: 2. bar
to be at the bottom.line
).Debugging attempt
I thought maybe the
todo.embedded.provider
was impacting this somehow. My default is set torg
, so I changed it tojavascript
and observed the same behavior. So changing the provider doesn't seem to have any impact.