public EditorNavigationSource(ITextBuffer textBuffer, BackgroundParser backgroundParser, DispatcherGlyphService glyphService)
        {
            _textBuffer = textBuffer;
            _glyphService = glyphService;

            _navigationTargets = new List<EditorTypeNavigationTarget>();

            backgroundParser.RegisterSyntaxTreeHandler(BackgroundParserHandlerPriority.Medium, this);
        }
 public HlslCompletionSet(ICompletionSession session, CompletionModelManager completionModelManager, DispatcherGlyphService glyphService)
 {
     _session = session;
     _completionModelManager = completionModelManager;
     _glyphService = glyphService;
     _completionModelManager.ModelChanged += CompletionModelManagerOnModelChanged;
     _session.Dismissed += SessionOnDismissed;
     Refresh();
 }
        public EditorNavigationSource(ITextBuffer textBuffer, BackgroundParser backgroundParser, DispatcherGlyphService glyphService)
        {
            _textBuffer = textBuffer;
            _glyphService = glyphService;

            _navigationTargets = new List<EditorTypeNavigationTarget>();

            backgroundParser.SubscribeToThrottledSyntaxTreeAvailable(BackgroundParserSubscriptionDelay.Medium,
                async x => await ExceptionHelper.TryCatchCancellation(async () => await InvalidateTargets(x.Snapshot, x.CancellationToken)));
        }
Exemple #4
0
 public QuickInfoSource(
     IClassificationFormatMapService classificationFormatMapService,
     HlslClassificationService classificationService,
     DispatcherGlyphService dispatcherGlyphService)
 {
     _classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap("text");
     _tooltipClassificationFormatMap = classificationFormatMapService.GetClassificationFormatMap("tooltip");
     _classificationService = classificationService;
     _dispatcherGlyphService = dispatcherGlyphService;
 }
 public NavigateToItemProvider(
     IBufferGraphFactoryService bufferGraphFactoryService,
     NavigateToItemProviderFactory navigateToItemProviderFactory,
     DispatcherGlyphService glyphService,
     IServiceProvider serviceProvider)
 {
     _bufferGraphFactoryService = bufferGraphFactoryService;
     _navigateToItemProviderFactory = navigateToItemProviderFactory;
     _glyphService = glyphService;
     _serviceProvider = serviceProvider;
 }
 public NavigateToItemProvider(
     IBufferGraphFactoryService bufferGraphFactoryService, 
     NavigateToItemProviderFactory navigateToItemProviderFactory, 
     DispatcherGlyphService glyphService,
     IServiceProvider serviceProvider,
     VisualStudioSourceTextFactory sourceTextFactory)
 {
     _bufferGraphFactoryService = bufferGraphFactoryService;
     _navigateToItemProviderFactory = navigateToItemProviderFactory;
     _glyphService = glyphService;
     _serviceProvider = serviceProvider;
     _sourceTextFactory = sourceTextFactory;
 }
 public NavigateToVisitor(
     string searchValue, 
     ITextSnapshot snapshot, IWpfTextView textView,
     INavigateToCallback callback, 
     IBufferGraphFactoryService bufferGraphFactoryService,
     INavigateToItemDisplayFactory displayFactory, 
     DispatcherGlyphService glyphService,
     CancellationToken cancellationToken)
 {
     _searchValue = searchValue;
     _snapshot = snapshot;
     _textView = textView;
     _callback = callback;
     _bufferGraphFactoryService = bufferGraphFactoryService;
     _displayFactory = displayFactory;
     _glyphService = glyphService;
     _cancellationToken = cancellationToken;
 }
 public static Icon GetIcon(this Glyph glyph, DispatcherGlyphService glyphService)
 {
     return(glyphService.GetIcon(glyph.GetStandardGlyphGroup(), StandardGlyphItem.GlyphItemPublic));
 }
 public static ImageSource GetImageSource(this Glyph glyph, DispatcherGlyphService glyphService)
 {
     return(glyphService.GetGlyph(glyph.GetStandardGlyphGroup(), StandardGlyphItem.GlyphItemPublic));
 }
 public CompletionSource(DispatcherGlyphService glyphService)
 {
     _glyphService = glyphService;
 }
 public static Icon GetIcon(this Glyph glyph, DispatcherGlyphService glyphService)
 {
     return glyphService.GetIcon(glyph.GetStandardGlyphGroup(), StandardGlyphItem.GlyphItemPublic);
 }
 public static ImageSource GetImageSource(this Glyph glyph, DispatcherGlyphService glyphService)
 {
     return glyphService.GetGlyph(glyph.GetStandardGlyphGroup(), StandardGlyphItem.GlyphItemPublic);
 }