wmjordan / Codist

A visual studio extension which enhances syntax highlighting, quick info (tooltip), navigation bar, scrollbar, display quality, and brings smart tool bar with code refactoring to code editor.
https://marketplace.visualstudio.com/items?itemName=wmj.Codist
GNU General Public License v3.0
315 stars 28 forks source link

Suggestion: Analyzer for Tagged comments #174

Open fitdev opened 3 years ago

fitdev commented 3 years ago

It would be nice to be able to have some user-defined comment tags participate in code analysis, such that certain tagged comments can produce either warnings or errors.

So, at the basic level, a 3rd dropdown is needed on tags section in the Syntax Highlight Configurations called Analyzer (or something similar) with values:

Maybe for Warning and Error add ability to define custom, per-tag analyzer IDs.

A More Advanced Version:

To make this even more useful, whether or not a Warning/Error is issued can be made to depend on not just on the comment tag itself (string value), but on additional conditions:

To implement it as an Analyzer in an extension, you can look into how they do analyzers in Roslynator

fitdev commented 3 years ago

Additional Ideas about Tagged Comments:

  1. Ability to list / display such tagged comments in the NaviBar's dropdowns:
  1. Ability to display these in Super QuickInfos (perhaps in a similar place where Analyzer comment is displayed)
fitdev commented 2 years ago

Another possibility is to perhaps somehow integrate it with VS's task list.

wmjordan commented 2 years ago

Aren't they already in the Task List?

image
fitdev commented 2 years ago

You are right! Sorry about that. I guess I forgot to keep the 2 lists in sync (I have more comment tags defined in Codist than I have defined in VS's task list).