예제 #1
0
 public MyMouseHoverProcessor(IWpfTextView wpfTextView, IVsEditorAdaptersFactoryService editorAdapters,
                              CurrentWordPosition currentWordPosition)
 {
     _view = wpfTextView;
     _currentWordPosition = currentWordPosition;
     _viewAdapter         = editorAdapters.GetViewAdapter(wpfTextView);
 }
 public HighlighterTagger(ITextView textView, ITextBuffer buffer, CurrentWordPosition currentWordPosition)
 {
     _textView = textView;
     _buffer   = buffer;
     currentWordPosition.WordUnderMouseChanged += (start, end) =>
     {
         _clearing = true;
         TagsChanged?.Invoke(this, new SnapshotSpanEventArgs(new SnapshotSpan(new SnapshotPoint(_buffer.CurrentSnapshot, Start), (End - Start))));
         _clearing = false;
         Start     = start;
         End       = end;
         TagsChanged?.Invoke(this, new SnapshotSpanEventArgs(new SnapshotSpan(new SnapshotPoint(_buffer.CurrentSnapshot, Start), (End - Start))));
     };
 }
 public DocumentedCodeHighlighterTaggerProvider(CurrentWordPosition currentWordPosition)
 {
     _currentWordPosition = currentWordPosition;
 }
예제 #4
0
 public MyMouseHoverProcessorProvider(
     IVsEditorAdaptersFactoryService editorAdapters, CurrentWordPosition currentWordPosition)
 {
     _editorAdapters      = editorAdapters;
     _currentWordPosition = currentWordPosition;
 }