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