"todo.embedded.view.sort": "label" does not work as expected
Opened this issue · 3 comments
nazmulidris commented
Repro step
- Edit vscode
settings.json
- 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
tolabel
.- I was expecting
TODO: 1. foo
to be at the top of the todo embedded view andTODO: 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 was expecting
- It looks like https://github.com/fabiospampinato/vscode-todo-plus/blob/master/src/views/embedded.ts#L80 is probably doing the right thing, so I'm not sure what is going on to cause this issue 🤔.
Debugging attempt
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.
fabiospampinato commented
Can you post a screenshot of the result so that we are exactly on the same page?
nazmulidris commented
fabiospampinato commented
Ok that doesn't look right 🤔