static CommentTasksProvider() { IdeApp.Initialized += (sender, args) => { IdeApp.Workspace.SolutionLoaded += OnSolutionLoaded; IdeApp.Workspace.WorkspaceItemClosed += OnWorkspaceItemClosed; Legacy.Initialize(); }; CommentTag.SpecialCommentTagsChanged += OnSpecialTagsChanged; }
public static void Initialize() { Runtime.ServiceProvider.WhenServiceInitialized <CompositionManager> (compositionManager => { var todoListProvider = compositionManager.GetExportedValue <ITodoListProvider> (); todoListProvider.TodoListUpdated += OnTodoListUpdated; }); Runtime.ServiceProvider.WhenServiceInitialized <RootWorkspace> (workspace => { workspace.SolutionLoaded += OnSolutionLoaded; workspace.WorkspaceItemClosed += OnWorkspaceItemClosed; Legacy.Initialize(); }); CommentTag.SpecialCommentTagsChanged += OnSpecialTagsChanged; }