import * as vscode from "vscode" ; import { IAzExtOutputChannel } from "vscode-azureextensionui" ; /**
 * Wraps an output channel to echo everything logged to the console
 */ export class ConsoleOutputChannelWrapper implements IAzExtOutputChannel { public constructor ( private readonly outputChannel ) { } public appendLog ( value , options ? ) { console . log ( value ) ; this . outputChannel . appendLog ( value , options ) ; } public get name ( ) : string { return this . outputChannel . name ; } public append ( value ) { console . log ( value ) ; this . outputChannel . append ( value ) ; } public appendLine ( value ) { console . log ( value ) ; this . outputChannel . appendLine ( value ) ; } public clear ( ) { this . outputChannel . clear ( ) ; } public show ( preserveFocus ? ) ; public show ( column ? , preserveFocus ? ) ; public show ( column ? , preserveFocus ? ) { this . outputChannel . show ( column , preserveFocus ) ; } public hide ( ) { this . outputChannel . hide ( ) ; } public dispose ( ) { this . outputChannel . dispose ( ) ; } }