Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

highlight #suppression for better suppression identification #3349

Closed
3 tasks done
allenjzhang opened this issue May 14, 2024 · 4 comments
Closed
3 tasks done

highlight #suppression for better suppression identification #3349

allenjzhang opened this issue May 14, 2024 · 4 comments
Assignees
Labels
feature New feature or request ide Issues for VS, VSCode, Monaco, etc. triaged:core
Milestone

Comments

@allenjzhang
Copy link
Member

allenjzhang commented May 14, 2024

Clear and concise description of the problem

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

Checklist

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
@bterlson bterlson added the ide Issues for VS, VSCode, Monaco, etc. label May 14, 2024
@bterlson bterlson changed the title [IDE] highlight #suppression for better suppression identification highlight #suppression for better suppression identification May 14, 2024
@markcowl markcowl added the feature New feature or request label May 14, 2024
@markcowl markcowl added this to the Backlog milestone May 14, 2024
@markcowl
Copy link
Contributor

Priority: 1

@RodgeFu
Copy link
Contributor

RodgeFu commented May 28, 2024

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

@RodgeFu RodgeFu self-assigned this May 28, 2024
@timotheeguerin
Copy link
Member

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.

@RodgeFu
Copy link
Contributor

RodgeFu commented May 31, 2024

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 RodgeFu closed this as completed May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request ide Issues for VS, VSCode, Monaco, etc. triaged:core
Projects
None yet
Development

No branches or pull requests

5 participants