public SyntaxTagger(ShaderLabClassificationService classificationService, BackgroundParser backgroundParser)
        {
            _classificationService = classificationService;

            backgroundParser.SubscribeToThrottledSyntaxTreeAvailable(BackgroundParserSubscriptionDelay.NearImmediate,
                                                                     async x => await InvalidateTags(x.Snapshot, x.CancellationToken));
        }
Exemple #2
0
 public SyntaxTaggerWorker(ShaderLabClassificationService classificationService, List <ITagSpan <IClassificationTag> > results, ITextSnapshot snapshot, CancellationToken cancellationToken)
 {
     _classificationService = classificationService;
     _results           = results;
     _snapshot          = snapshot;
     _cancellationToken = cancellationToken;
 }