Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <llsan@microsoft.com>2017-07-19 00:42:06 +0300
committerGitHub <noreply@github.com>2017-07-19 00:42:06 +0300
commitefe0010c9a4616356af3b6517b04286e5bac0f4c (patch)
tree35a0fb5ca078efe850fda45fe2480ec0c2be1dd5 /main/src/core/MonoDevelop.Ide
parent556743a897873650ff2286b6373dc2b72b87cc52 (diff)
parentef99afdd7300d7333e6a69926417be8026d1ba76 (diff)
Merge pull request #2765 from iainx/log-marker
Adds a Diagnostics menu item to put a mark in the log.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide')
-rw-r--r--main/src/core/MonoDevelop.Ide/ExtensionModel/Commands.addin.xml3
-rw-r--r--main/src/core/MonoDevelop.Ide/ExtensionModel/MainMenu.addin.xml1
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/HelpCommands.cs9
3 files changed, 13 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/ExtensionModel/Commands.addin.xml b/main/src/core/MonoDevelop.Ide/ExtensionModel/Commands.addin.xml
index 54e1362133..6fe92d0bc0 100644
--- a/main/src/core/MonoDevelop.Ide/ExtensionModel/Commands.addin.xml
+++ b/main/src/core/MonoDevelop.Ide/ExtensionModel/Commands.addin.xml
@@ -828,6 +828,9 @@
<Command id = "MonoDevelop.Ide.Commands.HelpCommands.DumpA11yTreeDelayed"
defaultHandler = "MonoDevelop.Ide.Commands.DumpA11yTreeDelayedHandler"
_label = "Dump Accessibility Tree (10s)" />
+ <Command id = "MonoDevelop.Ide.Commands.HelpCommands.MarkLog"
+ defaultHandler = "MonoDevelop.Ide.Commands.MarkLogHandler"
+ _label = "Mark Log" />
</Category>
<!-- SearchCommands -->
diff --git a/main/src/core/MonoDevelop.Ide/ExtensionModel/MainMenu.addin.xml b/main/src/core/MonoDevelop.Ide/ExtensionModel/MainMenu.addin.xml
index e122cf42f1..993e0046f2 100644
--- a/main/src/core/MonoDevelop.Ide/ExtensionModel/MainMenu.addin.xml
+++ b/main/src/core/MonoDevelop.Ide/ExtensionModel/MainMenu.addin.xml
@@ -288,6 +288,7 @@
<CommandItem id = "MonoDevelop.Ide.Commands.HelpCommands.DumpUITree" />
<CommandItem id = "MonoDevelop.Ide.Commands.HelpCommands.DumpA11yTree" />
<CommandItem id = "MonoDevelop.Ide.Commands.HelpCommands.DumpA11yTreeDelayed" />
+ <CommandItem id = "MonoDevelop.Ide.Commands.HelpCommands.MarkLog" />
</ItemSet>
<Condition id = "Platform" value = "!mac">
<SeparatorItem id = "SeparatorAbout" />
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/HelpCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/HelpCommands.cs
index 7f0d57ede9..bdd66ebf1c 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/HelpCommands.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/HelpCommands.cs
@@ -32,6 +32,7 @@ using System.Timers;
using MonoDevelop.Ide.Gui.Dialogs;
using MonoDevelop.Ide.Gui;
using MonoDevelop.Components.Commands;
+using MonoDevelop.Core;
namespace MonoDevelop.Ide.Commands
{
@@ -176,4 +177,12 @@ namespace MonoDevelop.Ide.Commands
}
#endif
}
+
+ class MarkLogHandler : CommandHandler
+ {
+ protected override void Run ()
+ {
+ LoggingService.LogInfo ("\n\n--- --- --- --- MARK --- --- --- ---\n\n");
+ }
+ }
}