import * as vscode from 'vscode' ; export namespace TaskUtils { export function determineEOL ( eolValue ) { if ( eolValue == vscode . EndOfLine . CRLF ) { return '\r\n' ; } return '\n' ; } export function deleteLines ( lineDeletes , editor , doc ) { let sortedLines = lineDeletes . reverse ( ) ; if ( sortedLines . length > 0 ) { editor . edit ( builder => { sortedLines . forEach ( a => { builder . delete ( doc . lineAt ( a . valueOf ( ) ) . rangeIncludingLineBreak ) ; } ) ; } ) . then ( ( ) => { } ) ; } } export function isTaskComplete ( lineText ) { if ( lineText . substring ( 0 , 2 ) . toLowerCase ( ) == "x " ) { return true ; } return false ; } }