mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-04 17:23:45 -05:00
Merge from vscode e5834d3280fcd04898efeac32b9cf1b893f9b127 (#9385)
* Merge from vscode e5834d3280fcd04898efeac32b9cf1b893f9b127 * distro
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user