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

            _navigationTargets = new List<EditorTypeNavigationTarget>();

            backgroundParser.RegisterSyntaxTreeHandler(BackgroundParserHandlerPriority.Medium, this);
        }
Ejemplo n.º 2
0
 public HlslCompletionSet(ICompletionSession session, CompletionModelManager completionModelManager, DispatcherGlyphService glyphService)
 {
     _session = session;
     _completionModelManager = completionModelManager;
     _glyphService = glyphService;
     _completionModelManager.ModelChanged += CompletionModelManagerOnModelChanged;
     _session.Dismissed += SessionOnDismissed;
     Refresh();
 }
Ejemplo n.º 3
0
        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)));
        }
Ejemplo n.º 4
0
 public QuickInfoSource(
     IClassificationFormatMapService classificationFormatMapService,
     HlslClassificationService classificationService,
     DispatcherGlyphService dispatcherGlyphService)
 {
     _classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap("text");
     _tooltipClassificationFormatMap = classificationFormatMapService.GetClassificationFormatMap("tooltip");
     _classificationService = classificationService;
     _dispatcherGlyphService = dispatcherGlyphService;
 }
Ejemplo n.º 5
0
 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;
 }
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 8
0
 public static Icon GetIcon(this Glyph glyph, DispatcherGlyphService glyphService)
 {
     return(glyphService.GetIcon(glyph.GetStandardGlyphGroup(), StandardGlyphItem.GlyphItemPublic));
 }
Ejemplo n.º 9
0
 public static ImageSource GetImageSource(this Glyph glyph, DispatcherGlyphService glyphService)
 {
     return(glyphService.GetGlyph(glyph.GetStandardGlyphGroup(), StandardGlyphItem.GlyphItemPublic));
 }
Ejemplo n.º 10
0
 public CompletionSource(DispatcherGlyphService glyphService)
 {
     _glyphService = glyphService;
 }
Ejemplo n.º 11
0
 public static Icon GetIcon(this Glyph glyph, DispatcherGlyphService glyphService)
 {
     return glyphService.GetIcon(glyph.GetStandardGlyphGroup(), StandardGlyphItem.GlyphItemPublic);
 }
Ejemplo n.º 12
0
 public static ImageSource GetImageSource(this Glyph glyph, DispatcherGlyphService glyphService)
 {
     return glyphService.GetGlyph(glyph.GetStandardGlyphGroup(), StandardGlyphItem.GlyphItemPublic);
 }