import { window } from "vscode" ; import IVSCServerManagerEventsHandler from "./IVSCServerManagerEventsHandler" ; import VSCServerManagerBase from "./VSCServerManagerBase" ; export default class VSCNotification implements IVSCServerManagerEventsHandler { public onStart ( serverManager , session ) { } public onStartFail ( serverManager , session , error ) { window . showErrorMessage ( `Start ${ serverManager . name } error: ${ error . message }` ) ; } public onStartSuccess ( serverManager , session ) { window . showInformationMessage ( `${ serverManager . name } successfully listens on ${ serverManager . getServer ( ) ! . getHttpServerAddress ( ) }` ) ; } public onClean ( serverManager , session ) { } public onCleanFail ( serverManager , session , error ) { window . showErrorMessage ( `Clean ${ serverManager . name } error: ${ error . message }` ) ; } public onCleanSuccess ( serverManager , session ) { window . showInformationMessage ( `Clean up ${ serverManager . name } successfully.` ) ; } public onClose ( serverManager , session ) { } public onCloseFail ( serverManager , session , error ) { window . showErrorMessage ( `Close ${ serverManager . name } error: ${ error . message }` ) ; } public onCloseSuccess ( serverManager , session ) { window . showInformationMessage ( `${ serverManager . name } successfully closed.` ) ; } }