module . exports = class GetFileContent { vscode : any ; fs : any ; constructor ( vscode , fs ) { this . vscode = vscode ; this . fs = fs ; } getFileContent = async ( fileName ) => { const fs = this . fs ; const vscode = this . vscode ; return new Promise ( function ( resolve , reject ) { fs . readFile ( fileName , async ( err , data ) => { if ( ! err ) { const selectedTexted = vscode . window . activeTextEditor . document . getText ( vscode . window . activeTextEditor . selection ) ; const fileData = await data . toString ( ) ; resolve ( { fileData , selectedTexted } ) ; } else { vscode . window . showInformationMessage ( '.md Not Converted to urdu' ) ; reject ( undefined ) ; } } ) ; } ) ; } ; } ;