diff options
author | David Karlaš <david.karlas@microsoft.com> | 2019-06-07 14:43:42 +0300 |
---|---|---|
committer | David Karlaš <david.karlas@microsoft.com> | 2019-06-07 14:43:42 +0300 |
commit | 1bc2074f35ff1df5500d5b9d86de4f4417206e45 (patch) | |
tree | 88b18e6565c4779353619533b22893b06c6df3e5 | |
parent | 5bd38ee6dcf9c128fe2e890711b1e1d2030cf991 (diff) |
Sync with vs-editor-core@97c210fd
-rw-r--r-- | src/Editor/Text/Def/TextUI/Commanding/CommandSelector.cs | 2 | ||||
-rw-r--r-- | src/Editor/Text/Util/TextUIUtil/TelemetryLogger.cs | 18 |
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 |