public CommentImage(VariableExpander variableExpander) : base()
        {
            _variableExpander = variableExpander ?? throw new ArgumentNullException("variableExpander");

            fileSystemWatcher.Changed += FileSystemWatcher_Changed;
            fileSystemWatcher.Renamed += FileSystemWatcher_Changed;
        }
        public CommentsAdornment(IWpfTextView view, ITextDocumentFactoryService textDocumentFactory, SVsServiceProvider serviceProvider)
        {
            _textDocumentFactory = textDocumentFactory;
            _view  = view;
            _layer = view.GetAdornmentLayer("CommentImageAdornmentLayer");
            Images = new ConcurrentDictionary <int, CommentImage>();
            _view.LayoutChanged += OnLayoutChanged;

            _contentTypeName = view.TextBuffer.ContentType.TypeName;
            _view.TextBuffer.ContentTypeChanged += OnContentTypeChanged;

            _errorTags        = new List <ITagSpan <ErrorTag> >();
            _variableExpander = new VariableExpander(_view, serviceProvider);

            _timer.Elapsed += _timer_Elapsed;
        }