protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress) { Instance = this; await base.InitializeAsync(cancellationToken, progress); var commandService = await GetServiceAsync(typeof(IMenuCommandService)) as OleMenuCommandService; await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); NavigationListCommand.Initialize(this, commandService); FunctionListCommand.Initialize(this, commandService); ClearSearchFieldCommand.Initialize(this, commandService); SelectItemCommand.Initialize(this, commandService); ShowHideLineNumberCommand.Initialize(this, commandService); InstructionSetSelector.Initialize(commandService); }