Esempio n. 1
0
        public void NavigateStep13()
        {
            var dte  = VsIntegration.GetCurrentVsInstance();
            var path = GlobalSettings.Instance.GetPath(4, PathType.WorkCopySolutionFolder) +
                       "\\Tutorial4_WhatsNewReSharper2017.1\\.editorconfig";

            dte.ExecuteCommand("File.OpenFile", path);
        }
Esempio n. 2
0
        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");
        }
Esempio n. 3
0
        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;
            });
        }
Esempio n. 4
0
        public bool CheckStep19()
        {
            var dte = VsIntegration.GetCurrentVsInstance();

            return(dte.ActiveDocument.Name == "GoToText.xml");
        }