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

            _navigationTargets = new List <EditorTypeNavigationTarget>();

            backgroundParser.RegisterSyntaxTreeHandler(BackgroundParserHandlerPriority.Medium, this);
        }
Example #2
0
 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)));
        }
Example #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;
 }
Example #6
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;
 }
 public NavigationTargetsVisitor(ITextSnapshot snapshot, DispatcherGlyphService glyphService, CancellationToken cancellationToken)
 {
     _glyphService      = glyphService;
     _cancellationToken = cancellationToken;
     _snapshot          = snapshot;
 }
Example #8
0
 public CompletionSource(DispatcherGlyphService glyphService)
 {
     _glyphService = glyphService;
 }