diff --git a/src/AddIns/Misc/SharpRefactoring/Src/MethodExtractorBase.cs b/src/AddIns/Misc/SharpRefactoring/Src/MethodExtractorBase.cs index b5492b3af2..6a1f117683 100644 --- a/src/AddIns/Misc/SharpRefactoring/Src/MethodExtractorBase.cs +++ b/src/AddIns/Misc/SharpRefactoring/Src/MethodExtractorBase.cs @@ -128,7 +128,7 @@ namespace SharpRefactoring code = code.TrimEnd('\r', '\n', ' ', '\t'); - Dom.IMember p = GetParentMember(this.textEditor, this.currentSelection.StartPosition.Line, this.currentSelection.StartPosition.Column); + Dom.IMember p = GetParentMember(this.textEditor, this.currentSelection.StartPosition.Line + 1, this.currentSelection.StartPosition.Column + 1); TextLocation loc = new ICSharpCode.TextEditor.TextLocation( p.BodyRegion.EndColumn - 1, p.BodyRegion.EndLine - 1); diff --git a/src/AddIns/Misc/UnitTesting/Src/RunTestCommands.cs b/src/AddIns/Misc/UnitTesting/Src/RunTestCommands.cs index f6f9bd64f0..0e4f8c4222 100644 --- a/src/AddIns/Misc/UnitTesting/Src/RunTestCommands.cs +++ b/src/AddIns/Misc/UnitTesting/Src/RunTestCommands.cs @@ -532,6 +532,7 @@ namespace ICSharpCode.UnitTesting startInfo.Arguments = helper.GetArguments(); startInfo.WorkingDirectory = UnitTestApplicationStartHelper.UnitTestApplicationDirectory; + LoggingService.Info("starting profiler..."); ProfilerService.CurrentProfiler.Start(startInfo, path, delegate { AfterFinish(helper, path); }); } @@ -539,6 +540,7 @@ namespace ICSharpCode.UnitTesting { ProfilerService.AddSessionToProject(helper.Project, path); WorkbenchSingleton.SafeThreadAsyncCall(TestsFinished); + LoggingService.Info("shutting profiler down..."); } public override void Run() @@ -554,6 +556,7 @@ namespace ICSharpCode.UnitTesting protected override void OnStop() { if (ProfilerService.CurrentProfiler.IsRunning) { + LoggingService.Info("stopping profiler..."); ProfilerService.CurrentProfiler.Stop(); } }