microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.26k stars 29.3k forks source link

Support TODO Diagnostic Severity #198454

Open navaronbracke opened 12 months ago

navaronbracke commented 12 months ago

When viewing the Problems tab, both TODO's and info messages, warnings and errors are displayed.

You can toggle the display of the info / error / warning messages with the filter button. However, there is no way to easily filter TODO's from other info messages.

I would like to see a new option in the filter, specifically for TODO comments. I.e. Show TODO's under the Show Infos option.

When this is checked, TODO comments show up in the problems tab.

To illustrate, my warning panel of one of my projects (conveniently, with a lot of warnings):

Screenshot 2023-11-16 at 17 29 17
IllusionMH commented 12 months ago

That's your extension returning TODO items along with problems

Most likely you need to ask in extension's repo to provide setting to return TODOs or not, because AFAIK VS Code doesn't have separate severity or any support for TODO out of the box.

As an alternative you can try !todo in filter field.

navaronbracke commented 12 months ago

because AFAIK VS Code doesn't have separate severity or any support for TODO out of the box.

This was my intent with this issue, if we had TODOs as an issue category in the LSP, then VSCode could provide a filter for this. Currently the Dart analyzer does some manual work to have the dart(todo) show up as "info" issues, because there is no such category for TODO's.

vscodenpa commented 11 months ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

vscodenpa commented 11 months ago

:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!