示例#1
0
        public SemanticTagger(HlslClassificationService classificationService, BackgroundParser backgroundParser)
        {
            _classificationService = classificationService;

            backgroundParser.SubscribeToThrottledSemanticModelAvailable(BackgroundParserSubscriptionDelay.Short,
                                                                        async x => await InvalidateTags(x.Snapshot, x.CancellationToken));
        }
 public SemanticTaggerVisitor(HlslClassificationService classificationService, ITextSnapshot snapshot, List<ITagSpan<IClassificationTag>> results, CancellationToken cancellationToken)
 {
     _classificationService = classificationService;
     _snapshot = snapshot;
     _results = results;
     _cancellationToken = cancellationToken;
 }
 public SyntaxTaggerWorker(HlslClassificationService classificationService, List<ITagSpan<IClassificationTag>> results, ITextSnapshot snapshot, CancellationToken cancellationToken)
 {
     _classificationService = classificationService;
     _results = results;
     _snapshot = snapshot;
     _cancellationToken = cancellationToken;
 }
示例#4
0
 public SemanticTaggerVisitor(HlslClassificationService classificationService, ITextSnapshot snapshot, List <ITagSpan <IClassificationTag> > results, CancellationToken cancellationToken)
 {
     _classificationService = classificationService;
     _snapshot          = snapshot;
     _results           = results;
     _cancellationToken = cancellationToken;
 }
示例#5
0
 public SyntaxTaggerWorker(HlslClassificationService classificationService, List <ITagSpan <IClassificationTag> > results, ITextSnapshot snapshot, CancellationToken cancellationToken)
 {
     _classificationService = classificationService;
     _results           = results;
     _snapshot          = snapshot;
     _cancellationToken = cancellationToken;
 }
 public BraceCompletionContext(ISmartIndentationService smartIndentationService, ITextBufferUndoManagerProvider undoManager, HlslClassificationService classificationService, IOptionsService optionsService)
 {
     _smartIndentationService = smartIndentationService;
     _undoManager = undoManager;
     _classificationService = classificationService;
     _optionsService = optionsService;
 }
示例#7
0
        public SyntaxTagger(HlslClassificationService classificationService, BackgroundParser backgroundParser)
        {
            _classificationService = classificationService;

            backgroundParser.SubscribeToThrottledSyntaxTreeAvailable(BackgroundParserSubscriptionDelay.NearImmediate,
                                                                     async x => await InvalidateTags(x.Snapshot, x.CancellationToken));
        }
示例#8
0
        public SemanticTaggerProvider(HlslClassificationService classificationService,
                                      ClassificationColorManager classificationColorManager)
        {
            _classificationService      = classificationService;
            _classificationColorManager = classificationColorManager;

            VSColorTheme.ThemeChanged += UpdateTheme;
        }
示例#9
0
 public QuickInfoSource(
     IClassificationFormatMapService classificationFormatMapService,
     HlslClassificationService classificationService,
     DispatcherGlyphService dispatcherGlyphService)
 {
     _classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap("text");
     _tooltipClassificationFormatMap = classificationFormatMapService.GetClassificationFormatMap("tooltip");
     _classificationService = classificationService;
     _dispatcherGlyphService = dispatcherGlyphService;
 }
        public SemanticTaggerProvider(HlslClassificationService classificationService,
                                      ClassificationColorManager classificationColorManager,
                                      ShellEventListener shellEventListener)
        {
            _classificationService      = classificationService;
            _classificationColorManager = classificationColorManager;
            _shellEventListener         = shellEventListener;

            _shellEventListener.ThemeChanged += UpdateTheme;
        }
 public BraceCompletionContext(
     ISmartIndentationService smartIndentationService, ITextBufferUndoManagerProvider undoManager, 
     HlslClassificationService classificationService, IOptionsService optionsService,
     VisualStudioSourceTextFactory sourceTextFactory)
 {
     _smartIndentationService = smartIndentationService;
     _undoManager = undoManager;
     _classificationService = classificationService;
     _optionsService = optionsService;
     _sourceTextFactory = sourceTextFactory;
 }
示例#12
0
 public SemanticTagger(HlslClassificationService classificationService, BackgroundParser backgroundParser)
 {
     _classificationService = classificationService;
     backgroundParser.RegisterSyntaxTreeHandler(BackgroundParserHandlerPriority.High, this);
 }