mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Refresh master with initial release/0.24 snapshot (#332)
* Initial port of release/0.24 source code * Fix additional headers * Fix a typo in launch.json
This commit is contained in:
@@ -23,6 +23,10 @@ export interface IConfirmation {
|
||||
detail?: string;
|
||||
primaryButton?: string;
|
||||
secondaryButton?: string;
|
||||
checkbox?: {
|
||||
label: string;
|
||||
checked?: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
export const CloseAction = new Action('close.message', nls.localize('close', "Close"), null, true, () => TPromise.as(true));
|
||||
@@ -31,6 +35,11 @@ export const CancelAction = new Action('cancel.message', nls.localize('cancel',
|
||||
|
||||
export const IMessageService = createDecorator<IMessageService>('messageService');
|
||||
|
||||
export interface IConfirmationResult {
|
||||
confirmed: boolean;
|
||||
checkboxChecked?: boolean;
|
||||
}
|
||||
|
||||
export interface IMessageService {
|
||||
|
||||
_serviceBrand: any;
|
||||
@@ -53,7 +62,12 @@ export interface IMessageService {
|
||||
/**
|
||||
* Ask the user for confirmation.
|
||||
*/
|
||||
confirm(confirmation: IConfirmation): boolean;
|
||||
confirmSync(confirmation: IConfirmation): boolean;
|
||||
|
||||
/**
|
||||
* Ask the user for confirmation without blocking.
|
||||
*/
|
||||
confirm(confirmation: IConfirmation): TPromise<IConfirmationResult>;
|
||||
}
|
||||
|
||||
export const IChoiceService = createDecorator<IChoiceService>('choiceService');
|
||||
|
||||
Reference in New Issue
Block a user