@@ -26,86 +25,12 @@ export class NotificationService implements INotificationService {
constmodel=newNotificationsModel();
this.toDispose.push(model);
this._model=model;
// TODO@notification remove me
this.showFakeNotifications();
}
publicgetmodel():INotificationsModel{
returnthis._model;
}
privateshowFakeNotifications():void{
setTimeout(()=>{
this.notify({
severity:Severity.Info,
message:'This is a info message with a [link](https://code.visualstudio.com). This is a info message with a [link](https://code.visualstudio.com). This is a info message with a [link](https://code.visualstudio.com). This is a info message with a [link](https://code.visualstudio.com).',
source:'GitLens Extension'
});
lethandle=this.notify({
severity:Severity.Warning,
message:'This is a warning message with a [link](https://code.visualstudio.com).',
newAction('id.cancel','No, not OK!',null,true,()=>{console.log('NOT OK');returnvoid0;})
]
});
setTimeout(()=>{
handle2.updateMessage('This is a error message with a [link](https://code.visualstudio.com). This is a error message with a [link](https://code.visualstudio.com). This is a error message with a [link](https://code.visualstudio.com). This is a error message with a [link](https://code.visualstudio.com). This is a error message with a [link](https://code.visualstudio.com). This is a error message with a [link](https://code.visualstudio.com). This is a error message with a [link](https://code.visualstudio.com).This is a error message with a [link](https://code.visualstudio.com). This is a error message with a [link](https://code.visualstudio.com). This is a error message with a [link](https://code.visualstudio.com). This is a error message with a [link](https://code.visualstudio.com).');