protected override void Initialize() { base.Initialize(); GoToDefinitionCommand.Initialize(this); FindAllReferencesCommand.Initialize(this); RenameCommand.Initialize(this); FindRefsWindowCommand.Initialize(this); Reformat.ReformatCommand.Initialize(this); }
protected override async System.Threading.Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress) { await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); await base.InitializeAsync(cancellationToken, progress); // Attach to solution events solution = GetService(typeof(SVsSolution)) as IVsSolution; var re = solution.AdviseSolutionEvents(new SolutionEventListener(), out solutionEventsCookie); FindAllReferencesCommand.Initialize(this); FindRefsWindowCommand.Initialize(this); GoToDefinitionCommand.Initialize(this); GoToVisitorCommand.Initialize(this); NextSymCommand.Initialize(this); OptionsCommand.Initialize(this); ReformatCommand.Initialize(this); RenameCommand.Initialize(this); AboutCommand.Initialize(this); }