author Lakkanna Walikar
 *  description import * as vscode from 'vscode' ; import { commands } from 'vscode' ; param { vscode . TextEditor } editor param { string [ ] } replacedText const writeToEditor = ( editor , replacedText = [ '' ] ) => { try { if ( Array . isArray ( replacedText ) ) { editor . edit ( e => e . replace ( editor . selection , replacedText . join ( "\n" ) ) , { undoStopBefore : true , undoStopAfter : true , } ) ; const settings = vscode . workspace . getConfiguration ( 'cssConverter' ) ; if ( settings . get ( 'autoFormat' ) ) { commands . executeCommand ( 'editor.action.formatSelection' , [ ] ) ; } vscode . window . showInformationMessage ( "CSS Converted 😍" ) ; } } catch ( e ) { vscode . window . showErrorMessage ( "Error while converting CSS! ☹️" ) ; } } ; export default writeToEditor ;