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

            _navigationTargets = new List <EditorTypeNavigationTarget>();

            backgroundParser.RegisterSyntaxTreeHandler(BackgroundParserHandlerPriority.Medium, this);
        }
예제 #2
0
 public HlslCompletionSet(ICompletionSession session, CompletionModelManager completionModelManager, DispatcherGlyphService glyphService)
 {
     _session = session;
     _completionModelManager = completionModelManager;
     _glyphService           = glyphService;
     _completionModelManager.ModelChanged += CompletionModelManagerOnModelChanged;
     _session.Dismissed += SessionOnDismissed;
     Refresh();
 }
예제 #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)));
        }
예제 #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;
 }
예제 #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;
 }
예제 #7
0
 public NavigationTargetsVisitor(ITextSnapshot snapshot, DispatcherGlyphService glyphService, CancellationToken cancellationToken)
 {
     _glyphService      = glyphService;
     _cancellationToken = cancellationToken;
     _snapshot          = snapshot;
 }
예제 #8
0
 public CompletionSource(DispatcherGlyphService glyphService)
 {
     _glyphService = glyphService;
 }