module . exports = class CheckFileType { vscode : any ; constructor ( vscode ) { this . vscode = vscode ; } checkFileType = async ( ) => { const vscode = this . vscode ; let response ; let filePath ; const { _documentData } = vscode . window . activeTextEditor ; const { _languageId , _document } = _documentData ; const { fileName } = _document ; if ( _languageId === 'markdown' ) { response = true ; filePath = fileName ; } return { isMDFile : response , filePath } ; } ; } ;