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

Add a new preference to silence notifications #7195

Merged
merged 1 commit into from
Mar 6, 2020
Merged

Add a new preference to silence notifications #7195

merged 1 commit into from
Mar 6, 2020

Conversation

garethwhittaker
Copy link
Contributor

What it does

Resolves #5942

Provide users with the option to silence notifications, no longer showing the toasts whilst still being viewable in the status bar counter and accessible via the notifications centre.

How to test

  • Ensure notification toasts continue to appear by default (workbench.silentNotifications: false).
  • Set preference workbench.silentNotifications: true, then check that toasts no longer appear.

Review checklist

Reminder for reviewers

@akosyakov akosyakov added the notifications issues related to notifications label Feb 24, 2020
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution @garethwhittaker, I tested the changes and they work well!
I'll give @AlexTugarev a chance to take a look since he was the original author.

@kittaakos
Copy link
Contributor

Do we want to align the preference key with VS Code? They use zenMode.silentNotifications.

@vince-fugnitto
Copy link
Member

Do we want to align the preference key with VS Code? They use zenMode.silentNotifications.

I wasn't sure since we do not have the concept of zen mode. In VS Code, notifications can only be silenced in this mode which is not the same behavior we are going for.

@kittaakos
Copy link
Contributor

I wasn't sure since we do not have the concept of zen mode. In VS Code, notifications can only be silenced in this mode which is not the same behavior we are going for.

OK, I am a little bit off from this loop. What if there is a .vscode folder with zenMode. silentNotifications settings, do we ignore it?

@akosyakov
Copy link
Member

OK, I am a little bit off from this loop. What if there is a .vscode folder with zenMode. silentNotifications settings, do we ignore it?

@kittaakos zenMode is just an editor without anything else. This PR adds something like do not disturb mode regardless in which mode. I don't think VS Code support it.

@akosyakov
Copy link
Member

@vince-fugnitto Don't forget to help merging.

@vince-fugnitto
Copy link
Member

@vince-fugnitto Don't forget to help merging.

Sure! I just wanted to give an opportunity for others to take a look as well if they wanted to.

@vince-fugnitto
Copy link
Member

@garethwhittaker I wanted to give time for others to check the pull-request but haven't gotten any additional feedback so I think it's good to merge. Can you rebase the pull-request to address the merge conflict?

Resolves #5942

Signed-off-by: Gareth Whittaker <garethwhittaker@hotmail.com>
@vince-fugnitto vince-fugnitto merged commit 796a592 into eclipse-theia:master Mar 6, 2020
@vince-fugnitto
Copy link
Member

Thank you for your contribution @garethwhittaker!

@garethwhittaker garethwhittaker deleted the notifications-dnd-mode branch March 6, 2020 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notifications issues related to notifications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support do not disturb mode for notifications
4 participants