public Searcher( Solution solution, IAsynchronousOperationListener asyncListener, ItemDisplayFactory 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 Searcher( Solution solution, IAsynchronousOperationListener asyncListener, ItemDisplayFactory 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 NavigateToItemProvider( Workspace workspace, IGlyphService glyphService, IAsynchronousOperationListener asyncListener) { Contract.ThrowIfNull(workspace); Contract.ThrowIfNull(glyphService); Contract.ThrowIfNull(asyncListener); _workspace = workspace; _asyncListener = asyncListener; _displayFactory = new ItemDisplayFactory(new NavigateToIconFactory(glyphService)); }
public NavigateToItemProvider( Workspace workspace, IGlyphService glyphService, IAsynchronousOperationListener asyncListener) { Contract.ThrowIfNull(workspace); Contract.ThrowIfNull(glyphService); Contract.ThrowIfNull(asyncListener); _workspace = workspace; _asyncListener = asyncListener; _displayFactory = new ItemDisplayFactory(new NavigateToIconFactory(glyphService)); }
public NavigateToItemProvider( Workspace workspace, IGlyphService glyphService, IAsynchronousOperationListener asyncListener, IEnumerable <Lazy <INavigateToOptionsService, VisualStudioVersionMetadata> > optionsServices) { Contract.ThrowIfNull(workspace); Contract.ThrowIfNull(glyphService); Contract.ThrowIfNull(asyncListener); _workspace = workspace; _asyncListener = asyncListener; _optionsServices = optionsServices.ToImmutableArray(); _displayFactory = new ItemDisplayFactory(new NavigateToIconFactory(glyphService)); }
public NavigateToItemProvider( Workspace workspace, IGlyphService glyphService, IAsynchronousOperationListener asyncListener, IEnumerable<Lazy<INavigateToOptionsService, VisualStudioVersionMetadata>> optionsServices) { Contract.ThrowIfNull(workspace); Contract.ThrowIfNull(glyphService); Contract.ThrowIfNull(asyncListener); _workspace = workspace; _asyncListener = asyncListener; _optionsServices = optionsServices.ToImmutableArray(); _displayFactory = new ItemDisplayFactory(new NavigateToIconFactory(glyphService)); }
public Searcher( Solution solution, IAsynchronousOperationListener asyncListener, ItemDisplayFactory displayFactory, INavigateToCallback callback, string searchPattern, CancellationToken cancellationToken) { _solution = solution; _displayFactory = displayFactory; _callback = callback; _searchPattern = searchPattern; _cancellationToken = cancellationToken; _progress = new ProgressTracker(callback.ReportProgress); _asyncListener = asyncListener; }
public Searcher( Solution solution, IAsynchronousOperationListener asyncListener, ItemDisplayFactory displayFactory, INavigateToCallback callback, string searchPattern, CancellationToken cancellationToken) { _solution = solution; _displayFactory = displayFactory; _callback = callback; _searchPattern = searchPattern; _cancellationToken = cancellationToken; _progress = new ProgressTracker(callback.ReportProgress); _asyncListener = asyncListener; }