public void NavigateStep13() { var dte = VsIntegration.GetCurrentVsInstance(); var path = GlobalSettings.Instance.GetPath(4, PathType.WorkCopySolutionFolder) + "\\Tutorial4_WhatsNewReSharper2017.1\\.editorconfig"; dte.ExecuteCommand("File.OpenFile", path); }
public StepActionChecker(Lifetime lifetime, IShellLocks shellLocks, IPsiFiles psiFiles) { _shellLocks = shellLocks; _psiFiles = psiFiles; _vsInstance = VsIntegration.GetCurrentVsInstance(); var events2 = _vsInstance.Events as Events2; if (events2 == null) { return; } var commandEvents = events2.CommandEvents; lifetime.AddBracket( () => commandEvents.AfterExecute += CommandEventsOnAfterExecute, () => commandEvents.AfterExecute -= CommandEventsOnAfterExecute); OnCheckPass = new Signal <bool>(lifetime, "StepActionChecker.AfterActionApplied"); }
public NextStepShortcutChecker(Lifetime lifetime, TutorialStep step, string nextStepActionName) { _step = step; _nextStepActionName = nextStepActionName; _vsInstance = VsIntegration.GetCurrentVsInstance(); var events2 = _vsInstance.Events as Events2; if (events2 == null) { return; } var commandEvents = events2.CommandEvents; lifetime.AddBracket( () => commandEvents.BeforeExecute += CommandEventsOnBeforeExecute, () => { commandEvents.BeforeExecute -= CommandEventsOnBeforeExecute; }); }
public bool CheckStep19() { var dte = VsIntegration.GetCurrentVsInstance(); return(dte.ActiveDocument.Name == "GoToText.xml"); }