import * as vscode from 'vscode' ; import Consts from '../../consts' ; import TodoCancelledItem from '../items/todo_cancelled' ; import Line from './line' ; const TODO_CANCELLED = vscode . window . createTextEditorDecorationType ( { color : Consts . colors . cancelled , rangeBehavior : vscode . DecorationRangeBehavior . ClosedOpen , dark : { color : Consts . colors . dark . cancelled } , light : { color : Consts . colors . light . cancelled } } ) ; class TodoCancelled extends Line { TYPES = [ TODO_CANCELLED ] ; getItemRanges ( todoCancelled , negRange ? ) { return [ this . getRangeDifference ( todoCancelled . text , todoCancelled . range , negRange || [ Consts . regexes . tag , Consts . regexes . formattedCode ] ) ] ; } } export default TodoCancelled ;