Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998 (#7880)

* Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998

* fix pipelines

* fix strict-null-checks

* add missing files
This commit is contained in:
Anthony Dresser
2019-10-21 22:12:22 -07:00
committed by GitHub
parent 7c9be74970
commit 1e22f47304
913 changed files with 18898 additions and 16536 deletions

View File

@@ -227,6 +227,25 @@ export interface IStatusMessageOptions {
hideAfter?: number;
}
export enum NotificationsFilter {
/**
* No filter is enabled.
*/
OFF,
/**
* All notifications are configured as silent. See
* `INotificationProperties.silent` for more info.
*/
SILENT,
/**
* All notifications are silent except error notifications.
*/
ERROR
}
/**
* A service to bring up notifications and non-modal prompts.
*
@@ -286,6 +305,13 @@ export interface INotificationService {
* @returns a disposable to hide the status message
*/
status(message: NotificationMessage, options?: IStatusMessageOptions): IDisposable;
/**
* Allows to configure a filter for notifications.
*
* @param filter the filter to use
*/
setFilter(filter: NotificationsFilter): void;
}
export class NoOpNotification implements INotificationHandle {