public EditorNavigationSource(ITextBuffer textBuffer, BackgroundParser backgroundParser, DispatcherGlyphService glyphService) { _textBuffer = textBuffer; _glyphService = glyphService; _navigationTargets = new List<EditorTypeNavigationTarget>(); backgroundParser.RegisterSyntaxTreeHandler(BackgroundParserHandlerPriority.Medium, this); }
public SyntaxErrorTagger(ITextView textView, BackgroundParser backgroundParser, IErrorListHelper errorListHelper, IOptionsService optionsService) : base(PredefinedErrorTypeNames.SyntaxError, errorListHelper) { optionsService.OptionsChanged += OnOptionsChanged; textView.Closed += (sender, e) => optionsService.OptionsChanged -= OnOptionsChanged; _errorListHelper = errorListHelper; _optionsService = optionsService; backgroundParser.RegisterSyntaxTreeHandler(BackgroundParserHandlerPriority.Low, this); OnOptionsChanged(this, EventArgs.Empty); }