Files
azuredatastudio/src/sqltest/stubs/messageServiceStub.ts
Karl Burtram 251ae01c3e Initial VS Code 1.19 source merge (#571)
* Initial 1.19 xcopy

* Fix yarn build

* Fix numerous build breaks

* Next batch of build break fixes

* More build break fixes

* Runtime breaks

* Additional post merge fixes

* Fix windows setup file

* Fix test failures.

* Update license header blocks to refer to source eula
2018-01-28 23:37:17 -08:00

45 lines
1.4 KiB
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'use strict';
import Severity from 'vs/base/common/severity';
import { IConfirmation, IMessageService, IMessageWithAction, IConfirmationResult } from 'vs/platform/message/common/message';
import { TPromise } from 'vs/base/common/winjs.base';
export class MessageServiceStub implements IMessageService{
_serviceBrand: any;
show(sev: Severity, message: string): () => void;
show(sev: Severity, message: Error): () => void;
show(sev: Severity, message: string[]): () => void;
show(sev: Severity, message: Error[]): () => void;
show(sev: Severity, message: IMessageWithAction): () => void;
show(sev: Severity, message): () => void {
return undefined;
}
hideAll(): void {
return undefined;
}
confirm(confirmation: IConfirmation): boolean {
return true;
}
/**
* Ask the user for confirmation.
*/
confirmSync(confirmation: IConfirmation): boolean {
return undefined;
}
/**
* Ask the user for confirmation with a checkbox.
*/
confirmWithCheckbox(confirmation: IConfirmation): TPromise<IConfirmationResult> {
return undefined;
}
}