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 <lluis@xamarin.com>2015-03-09 13:32:07 +0300
committerLluis Sanchez <lluis@xamarin.com>2015-03-09 13:32:48 +0300
commit974da88d2e36464de9bce7c8c7b08487c1beb198 (patch)
tree945eb5e364896a7f9f9d93c2e44139a9039ce080 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui
parent48a262c234a57d2280c051523ca735e3358f1ad4 (diff)
[Ide] Introspection improvements
Don't report DisplayBindingAndType metadata on document opened counter if the view is not a file.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/DefaultWorkbench.cs14
1 files changed, 9 insertions, 5 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/DefaultWorkbench.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/DefaultWorkbench.cs
index 75ff47016b..ba22ec2043 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/DefaultWorkbench.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/DefaultWorkbench.cs
@@ -386,11 +386,15 @@ namespace MonoDevelop.Ide.Gui
} else
type = "(not a file)";
- Counters.DocumentOpened.Inc (new Dictionary<string,string> () {
- { "FileType", type},
- { "DisplayBinding", content.GetType ().FullName},
- { "DisplayBindingAndType", type + " | " + content.GetType ().FullName},
- });
+ var metadata = new Dictionary<string,string> () {
+ { "FileType", type },
+ { "DisplayBinding", content.GetType ().FullName },
+ };
+
+ if (isFile)
+ metadata ["DisplayBindingAndType"] = type + " | " + content.GetType ().FullName;
+
+ Counters.DocumentOpened.Inc (metadata);
var mimeimage = PrepareShowView (content);
var addToControl = notebook ?? DockNotebook.ActiveNotebook ?? tabControl;