Esempio n. 1
0
        public EditorNavigationSource(ITextBuffer textBuffer, BackgroundParser backgroundParser, DispatcherGlyphService glyphService)
        {
            _textBuffer   = textBuffer;
            _glyphService = glyphService;

            _navigationTargets = new List <EditorTypeNavigationTarget>();

            backgroundParser.RegisterSyntaxTreeHandler(BackgroundParserHandlerPriority.Medium, this);
        }
Esempio n. 2
0
        public BraceMatchingTagger(BackgroundParser backgroundParser, ITextView textView, BraceMatcher braceMatcher)
        {
            backgroundParser.RegisterSyntaxTreeHandler(BackgroundParserHandlerPriority.Medium, this);

            textView.Caret.PositionChanged += OnCaretPositionChanged;

            _textView     = textView;
            _braceMatcher = braceMatcher;
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 public SemanticTagger(HlslClassificationService classificationService, BackgroundParser backgroundParser)
 {
     _classificationService = classificationService;
     backgroundParser.RegisterSyntaxTreeHandler(BackgroundParserHandlerPriority.High, this);
 }
Esempio n. 5
0
        public OutliningTagger(BackgroundParser backgroundParser, IOptionsService optionsService)
        {
            backgroundParser.RegisterSyntaxTreeHandler(BackgroundParserHandlerPriority.Medium, this);

            _enabled = optionsService.AdvancedOptions.EnterOutliningModeWhenFilesOpen;
        }