Merge from vscode e5834d3280fcd04898efeac32b9cf1b893f9b127 (#9385)

* Merge from vscode e5834d3280fcd04898efeac32b9cf1b893f9b127

* distro
This commit is contained in:
Anthony Dresser
2020-02-28 00:37:06 -08:00
committed by GitHub
parent 70851716f7
commit 5d13ebf0d2
143 changed files with 1711 additions and 934 deletions

View File

@@ -101,6 +101,12 @@ export interface INotification extends INotificationProperties {
* this usecase and much easier to use!
*/
actions?: INotificationActions;
/**
* The initial set of progress properties for the notification. To update progress
* later on, access the `INotificationHandle.progress` property.
*/
progress?: INotificationProgressProperties;
}
export interface INotificationActions {
@@ -119,6 +125,24 @@ export interface INotificationActions {
secondary?: ReadonlyArray<IAction>;
}
export interface INotificationProgressProperties {
/**
* Causes the progress bar to spin infinitley.
*/
infinite?: boolean;
/**
* Indicate the total amount of work.
*/
total?: number;
/**
* Indicate that a specific chunk of work is done.
*/
worked?: number;
}
export interface INotificationProgress {
/**
@@ -149,6 +173,13 @@ export interface INotificationHandle {
*/
readonly onDidClose: Event<void>;
/**
* Will be fired whenever the visibility of the notification changes.
* A notification can either be visible as toast or inside the notification
* center if it is visible.
*/
readonly onDidChangeVisibility: Event<boolean>;
/**
* Allows to indicate progress on the notification even after the
* notification is already visible.