import { Output } from "./output" ; import { OutputChannel , window } from "vscode" ; import { injectable } from "inversify" ; @ injectable ( ) export class TeamCityOutput implements Output { private readonly outputChannel : OutputChannel ; public constructor ( ) { this . outputChannel = window . createOutputChannel ( "TeamCity" ) ; } public appendLine ( line ) { if ( this . outputChannel ) { this . outputChannel . append ( line + "\n\n" ) ; } } public show ( ) { if ( this . outputChannel ) { this . outputChannel . show ( true ) ; } } public dispose ( ) { if ( this . outputChannel ) { this . outputChannel . dispose ( ) ; } } }