public ITagger <T> CreateTagger <T>(ITextBuffer buffer) where T : ITag { // Ensure package is loaded. // TODO: Don't do this. var package = ShaderLabPackage.Instance; var syntaxTagger = AsyncTaggerUtility.CreateTagger <SyntaxTagger, T>(buffer, () => new SyntaxTagger(ClassificationService, buffer.GetBackgroundParser())); return(syntaxTagger); }
public ITagger <T> CreateTagger <T>(ITextView textView, ITextBuffer buffer) where T : ITag { var errorListHelper = buffer.GetErrorListHelper(); if (errorListHelper == null) { return(null); } return(AsyncTaggerUtility.CreateTagger <SyntaxErrorTagger, T>(buffer, () => new SyntaxErrorTagger(textView, buffer.GetBackgroundParser(), errorListHelper, OptionsService))); }
public ITagger <T> CreateTagger <T>(ITextBuffer buffer) where T : ITag { if (!_languagePackageLoaded) { var languagePackage = GlobalServiceProvider.GetShell().LoadPackage <HlslPackage>(); _languagePackageLoaded = languagePackage != null; } var syntaxTagger = AsyncTaggerUtility.CreateTagger <SyntaxTagger, T>(buffer, () => new SyntaxTagger(ClassificationService, buffer.GetBackgroundParser())); return(syntaxTagger); }
public ITagger <T> CreateTagger <T>(ITextBuffer buffer) where T : ITag { return(AsyncTaggerUtility.CreateTagger <OutliningTagger, T>(buffer, () => new OutliningTagger(buffer.GetBackgroundParser(), OptionsService))); }
public ITagger <T> CreateTagger <T>(ITextView textView, ITextBuffer buffer) where T : ITag { return(AsyncTaggerUtility.CreateTagger <BraceMatchingTagger, T>(buffer, () => new BraceMatchingTagger(buffer.GetBackgroundParser(), textView, BraceMatcher))); }
public ITagger <T> CreateTagger <T>(ITextView textView, ITextBuffer buffer) where T : ITag { return(AsyncTaggerUtility.CreateTagger <SemanticErrorTagger, T>(buffer, () => new SemanticErrorTagger(textView, buffer.GetBackgroundParser(), OptionsService))); }
public ITagger <T> CreateTagger <T>(ITextView textView, ITextBuffer buffer) where T : ITag { return(AsyncTaggerUtility.CreateTagger <HighlightingTagger, T>(buffer, () => new HighlightingTagger(buffer.GetBackgroundParser(), textView, HighlighterService.Highlighters, ServiceProvider))); }
public ITagger <T> CreateTagger <T>(ITextBuffer buffer) where T : ITag { return(AsyncTaggerUtility.CreateTagger <SemanticTagger, T>(buffer, () => new SemanticTagger(_classificationService, buffer.GetBackgroundParser()))); }