typespec icon indicating copy to clipboard operation
typespec copied to clipboard

highlight #suppression for better suppression identification

Open allenjzhang opened this issue 1 year ago • 1 comments

Clear and concise description of the problem

It would be nice to highlight #suppression line in editors for better identification when viewing.

Checklist

  • [X] Follow our Code of Conduct
  • [X] Read the docs.
  • [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

allenjzhang avatar May 14 '24 07:05 allenjzhang

Priority: 1

markcowl avatar May 14 '24 18:05 markcowl

@timotheeguerin , I can't find a proper SemanticToken or scope in vscode for the highlight. do you have any suggestions? thanks.

RodgeFu avatar May 28 '24 08:05 RodgeFu

sorry, I personally don't think this is a feature we want like that suppression are suppression it shouldn't be highlighted to the user if he meant to suppress them. They are also already too visibile IMO with the highlighting of #suppress keyword. This is just for the review of Azure service which woudln't even get done in VSCode with that highlighting. I think if we want that we need an opt-in option in the vscode settings and we can highlight them as suggestions or warnings or some other modifiers.

timotheeguerin avatar May 28 '24 15:05 timotheeguerin

Agree that from vs/vscode extension perspective, if user adds the suppress explicitly, he would expect the item to be ignored instead of highlighted. Also in c#, the #pragma warning disable ... or [SuppressMessage(...)] are both greyed out. so close the issue.

@allenjzhang , feel free to reopen if you still want them to be highlighted in vs/vscode extension for some reason. thanks.

RodgeFu avatar May 31 '24 03:05 RodgeFu