public TableDataSource(Workspace workspace, ITodoListProvider todoListProvider, Guid identifier)
 {
     _workspace        = workspace;
     _identifier       = identifier;
     _todoListProvider = todoListProvider;
     _todoListProvider.TodoListUpdated += OnTodoListUpdated;
 }
Exemplo n.º 2
0
 private void PopulateInitialData(Workspace workspace, ITodoListProvider todoListService)
 {
     foreach (var args in todoListService.GetTodoItemsUpdatedEventArgs(workspace, cancellationToken: CancellationToken.None))
     {
         OnDataAddedOrChanged(args);
     }
 }
Exemplo n.º 3
0
 public MiscellaneousTodoListTable(
     Workspace workspace,
     ITodoListProvider todoListProvider,
     ITableManagerProvider provider
     ) : base(workspace, todoListProvider, IdentifierString, provider)
 {
     ConnectWorkspaceEvents();
 }
Exemplo n.º 4
0
 internal VisualStudioTodoListTable(
     Workspace workspace,
     ITodoListProvider todoListProvider,
     ITableManagerProvider provider
     ) : base(workspace, todoListProvider, IdentifierString, provider)
 {
     ConnectWorkspaceEvents();
 }
            public TableDataSource(Workspace workspace, ITodoListProvider todoListProvider, string identifier)
                : base(workspace)
            {
                _workspace  = workspace;
                _identifier = identifier;

                _todoListProvider = todoListProvider;
                _todoListProvider.TodoListUpdated += OnTodoListUpdated;
            }
            public TableDataSource(Workspace workspace, ITodoListProvider todoListProvider, Guid identifier)
            {
                _workspace        = workspace;
                _identifier       = identifier;
                _todoListProvider = todoListProvider;
                _todoListProvider.TodoListUpdated += OnTodoListUpdated;

                ConnectToSolutionCrawlerService(_workspace);
            }
Exemplo n.º 7
0
 protected VisualStudioBaseTodoListTable(
     Workspace workspace,
     ITodoListProvider todoListProvider,
     string identifier,
     ITableManagerProvider provider
     ) : base(workspace, provider, StandardTables.TasksTable)
 {
     _source = new TableDataSource(workspace, todoListProvider, identifier);
     AddInitialTableSource(workspace.CurrentSolution, _source);
 }
Exemplo n.º 8
0
        public VisualStudioTodoTaskList(
            SVsServiceProvider serviceProvider,
            IForegroundNotificationService notificationService,
            IOptionService optionService,
            ITodoListProvider todoListProvider,
            [ImportMany] IEnumerable <Lazy <IAsynchronousOperationListener, FeatureMetadata> > asyncListeners) :
            base(serviceProvider, notificationService, FeatureAttribute.TodoCommentList, asyncListeners)
        {
            // this should be called after all fields are initialized
            InitializeTaskList();

            _optionService    = optionService;
            _todoListProvider = todoListProvider;

            // we return after initializing task provider since getting option information
            // require old task list provider.
            if (ErrorListInstalled)
            {
                return;
            }

            todoListProvider.TodoListUpdated += OnTodoListUpdated;
        }
Exemplo n.º 9
0
        public VisualStudioTodoTaskList(
            SVsServiceProvider serviceProvider,
            IForegroundNotificationService notificationService,
            IOptionService optionService,
            ITodoListProvider todoListProvider,
            [ImportMany] IEnumerable<Lazy<IAsynchronousOperationListener, FeatureMetadata>> asyncListeners) :
            base(serviceProvider, notificationService, FeatureAttribute.TodoCommentList, asyncListeners)
        {
            // this should be called after all fields are initialized
            InitializeTaskList();

            _optionService = optionService;
            _todoListProvider = todoListProvider;

            // we return after initializing task provider since getting option information
            // require old task list provider.
            if (ErrorListInstalled)
            {
                return;
            }

            todoListProvider.TodoListUpdated += OnTodoListUpdated;
        }
Exemplo n.º 10
0
 // only for test
 public VisualStudioTodoListTable(Workspace workspace, ITodoListProvider todoListProvider, ITableManagerProvider provider) :
     base(workspace, todoListProvider, Identifier, provider)
 {
 }
Exemplo n.º 11
0
 public TodoController(ITodoListProvider todoListProvider)
 {
     this.todoListProvider = todoListProvider;
 }
Exemplo n.º 12
0
 // only for test
 public MiscellaneousTodoListTable(Microsoft.CodeAnalysis.Workspace workspace, ITodoListProvider todoListProvider, ITableManagerProvider provider) :
     base(workspace, todoListProvider, IdentifierString, provider)
 {
 }
 protected VisualStudioBaseTodoListTable(Workspace workspace, ITodoListProvider todoListProvider, Guid identifier, ITableManagerProvider provider) :
     base(workspace, provider, StandardTables.TasksTable, new TableDataSource(workspace, todoListProvider, identifier))
 {
 }
 // only for test
 public MiscellaneousTodoListTable(Workspace workspace, ITodoListProvider todoListProvider, ITableManagerProvider provider) :
     base(workspace, todoListProvider, Identifier, provider)
 {
 }
Exemplo n.º 15
0
 public TodoItemRepository(ITodoListProvider todoItemProvider)
 {
     this.todoItemProvider = todoItemProvider;
 }
Exemplo n.º 16
0
 public MiscellaneousTodoListTable(MiscellaneousFilesWorkspace workspace, ITodoListProvider todoListProvider, ITableManagerProvider provider) :
     base(workspace, todoListProvider, IdentifierString, provider)
 {
     ConnectWorkspaceEvents();
 }
Exemplo n.º 17
0
 // only for test
 public MiscellaneousTodoListTable(Workspace workspace, ITodoListProvider todoListProvider, ITableManagerProvider provider) :
     base(workspace, todoListProvider, Identifier, provider)
 {
 }
Exemplo n.º 18
0
 public MiscellaneousTodoListTable(MiscellaneousFilesWorkspace workspace, ITodoListProvider todoListProvider, ITableManagerProvider provider) :
     base(workspace, todoListProvider, Identifier, provider)
 {
     AddTableSource();
 }
Exemplo n.º 19
0
 public MiscellaneousTodoListTable(MiscellaneousFilesWorkspace workspace, ITodoListProvider todoListProvider, ITableManagerProvider provider) :
     base(workspace, todoListProvider, Identifier, provider)
 {
     AddTableSource();
 }
Exemplo n.º 20
0
 public VisualStudioTodoListTable(VisualStudioWorkspace workspace, ITodoListProvider todoListProvider, ITableManagerProvider provider) :
     base(workspace, todoListProvider, Identifier, provider)
 {
     ConnectWorkspaceEvents();
 }
Exemplo n.º 21
0
 // only for test
 public VisualStudioTodoListTable(Workspace workspace, ITodoListProvider todoListProvider, ITableManagerProvider provider) :
     base(workspace, todoListProvider, IdentifierString, provider)
 {
 }
Exemplo n.º 22
0
 public VisualStudioTodoListTable(VisualStudioWorkspace workspace, ITodoListProvider todoListProvider, ITableManagerProvider provider) :
     base(workspace, todoListProvider, Identifier, provider)
 {
     ConnectWorkspaceEvents();
 }