public Searcher( Solution solution, IAsynchronousOperationListener asyncListener, INavigateToItemDisplayFactory displayFactory, INavigateToCallback callback, string searchPattern, bool searchCurrentDocument, CancellationToken cancellationToken) { _solution = solution; _displayFactory = displayFactory; _callback = callback; _searchPattern = searchPattern; _searchCurrentDocument = searchCurrentDocument; _cancellationToken = cancellationToken; _progress = new ProgressTracker(callback.ReportProgress); _asyncListener = asyncListener; if (_searchCurrentDocument) { var documentService = _solution.Workspace.Services.GetService<IDocumentTrackingService>(); var activeId = documentService.GetActiveDocument(); _currentDocument = activeId != null ? _solution.GetDocument(activeId) : null; } }
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 NavigateToItemProvider( Workspace workspace, IGlyphService glyphService, IAsynchronousOperationListener asyncListener, IEnumerable<Lazy<INavigateToHostVersionService, VisualStudioVersionMetadata>> hostServices) { Contract.ThrowIfNull(workspace); Contract.ThrowIfNull(glyphService); Contract.ThrowIfNull(asyncListener); _workspace = workspace; _asyncListener = asyncListener; _hostServices = hostServices.ToImmutableArray(); var hostService = _hostServices.Length > 0 ? VersionSelector.SelectHighest(hostServices) : new Dev14NavigateToHostVersionService(glyphService); _displayFactory = hostService.CreateDisplayFactory(); }
public NavigateToItemProviderCallback(INavigateToItemDisplayFactory displayFactory, INavigateToCallback callback) { _displayFactory = displayFactory; _callback = callback; }