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:
Karl Burtram
2017-12-15 15:38:57 -08:00
committed by GitHub
parent 271b3a0b82
commit 6ad0df0e3e
7118 changed files with 107999 additions and 56466 deletions

View File

@@ -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');