@@ -63,7 +63,8 @@ import { MockContextKeyService } from 'vs/platform/keybinding/test/common/mockKe
6363import { ITextBufferFactory , DefaultEndOfLine , EndOfLinePreference } from 'vs/editor/common/model' ;
6464import { Range } from 'vs/editor/common/core/range' ;
6565import { IConfirmation , IConfirmationResult , IDialogService , IDialogOptions } from 'vs/platform/dialogs/common/dialogs' ;
66- import { INotificationService , INotificationHandle , INotification , NoOpNotification , IPromptChoice } from 'vs/platform/notification/common/notification' ;
66+ import { INotificationService } from 'vs/platform/notification/common/notification' ;
67+ import { TestNotificationService } from 'vs/platform/notification/test/common/testNotificationService' ;
6768
6869export function createFileInput ( instantiationService : IInstantiationService , resource : URI ) : FileEditorInput {
6970 return instantiationService . createInstance ( FileEditorInput , resource , void 0 ) ;
@@ -306,33 +307,6 @@ export class TestHistoryService implements IHistoryService {
306307 }
307308}
308309
309- export class TestNotificationService implements INotificationService {
310-
311- public _serviceBrand : any ;
312-
313- private static readonly NO_OP : INotificationHandle = new NoOpNotification ( ) ;
314-
315- public info ( message : string ) : INotificationHandle {
316- return this . notify ( { severity : Severity . Info , message } ) ;
317- }
318-
319- public warn ( message : string ) : INotificationHandle {
320- return this . notify ( { severity : Severity . Warning , message } ) ;
321- }
322-
323- public error ( error : string | Error ) : INotificationHandle {
324- return this . notify ( { severity : Severity . Error , message : error } ) ;
325- }
326-
327- public notify ( notification : INotification ) : INotificationHandle {
328- return TestNotificationService . NO_OP ;
329- }
330-
331- public prompt ( severity : Severity , message : string , choices : IPromptChoice [ ] , onCancel ?: ( ) => void ) : INotificationHandle {
332- return TestNotificationService . NO_OP ;
333- }
334- }
335-
336310export class TestDialogService implements IDialogService {
337311
338312 public _serviceBrand : any ;
0 commit comments