diff options
author | iain holmes <iain@xamarin.com> | 2017-07-13 12:37:04 +0300 |
---|---|---|
committer | iain holmes <iain@xamarin.com> | 2017-07-13 12:37:04 +0300 |
commit | ef99afdd7300d7333e6a69926417be8026d1ba76 (patch) | |
tree | b0b9e2e05b590a18e1c93e2b35079313eb81c8ee /main/src/core/MonoDevelop.Ide | |
parent | d77977c0068e1e33c50fa5a294277d09a3712545 (diff) |
Adds a Diagnostics menu item to put a mark in the log.
Adding a mark in the log can be helpful to find a point in a busy log. Mark the
log before doing an action, and then it can be easier to work out when you
started the action
Diffstat (limited to 'main/src/core/MonoDevelop.Ide')
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"); + } + } } |