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

github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Karlaš <david.karlas@microsoft.com>2019-06-07 14:43:42 +0300
committerDavid Karlaš <david.karlas@microsoft.com>2019-06-07 14:43:42 +0300
commit1bc2074f35ff1df5500d5b9d86de4f4417206e45 (patch)
tree88b18e6565c4779353619533b22893b06c6df3e5
parent5bd38ee6dcf9c128fe2e890711b1e1d2030cf991 (diff)
Sync with vs-editor-core@97c210fd
-rw-r--r--src/Editor/Text/Def/TextUI/Commanding/CommandSelector.cs2
-rw-r--r--src/Editor/Text/Util/TextUIUtil/TelemetryLogger.cs18
2 files changed, 19 insertions, 1 deletions
diff --git a/src/Editor/Text/Def/TextUI/Commanding/CommandSelector.cs b/src/Editor/Text/Def/TextUI/Commanding/CommandSelector.cs
index ce430ad..d53e551 100644
--- a/src/Editor/Text/Def/TextUI/Commanding/CommandSelector.cs
+++ b/src/Editor/Text/Def/TextUI/Commanding/CommandSelector.cs
@@ -266,6 +266,8 @@ namespace Microsoft.VisualStudio.Text.Editor.Commanding
public const string InvokeSignatureHelp = "invokeSignatureHelp:";
+ public const string InvokeQuickFix = "invokeQuickFix:";
+
public const string TransposeWord = "transposeWord:";
public const string TransposeLine = "transposeLine:";
diff --git a/src/Editor/Text/Util/TextUIUtil/TelemetryLogger.cs b/src/Editor/Text/Util/TextUIUtil/TelemetryLogger.cs
index 55871e4..912930c 100644
--- a/src/Editor/Text/Util/TextUIUtil/TelemetryLogger.cs
+++ b/src/Editor/Text/Util/TextUIUtil/TelemetryLogger.cs
@@ -19,6 +19,8 @@ namespace Microsoft.VisualStudio.Text.Utilities
public const string VSEditorKey = "VS/Editor";
+ const string ExceptionEventName = VSEditorKey + "/Exception";
+
DispatcherTimer _touchZoomTimer = null;
DispatcherTimer _touchScrollTimer = null;
DispatcherTimer _zoomTimer = null;
@@ -118,9 +120,23 @@ namespace Microsoft.VisualStudio.Text.Utilities
}
}
+ public void LogException(
+ Exception exception,
+ string description = "An unhandled exception occurred in the editor")
+ {
+ try
+ {
+ LoggingService?.PostFault(
+ ExceptionEventName,
+ description,
+ exception);
+ }
+ catch { }
+ }
+
public void PostCounters()
{
- LoggingService.PostCounters();
+ LoggingService?.PostCounters();
}
}
} \ No newline at end of file