TypeCobol icon indicating copy to clipboard operation
TypeCobol copied to clipboard

Convert window/showMessage notifications to telemetry/event

Open fm-117 opened this issue 4 months ago • 0 comments

Child of #2668.

This is a minimalistic approach to LS exception tracking :

  • in TypeCobolServerHost, as soon as the TypeCobolServer instance is available , add a new ILogger.
    • this new logger would be responsible for sending a telemetry/event as described in #2668 when the LogException method is called. It will be naturally dependent from the TypeCobolServer as it requires to send JSON to the client.
  • remove the call to ShowErrorMessage from NotifyException and move it to UnhandledExceptionHandler, to ensure a message is still displayed in the event of a server crash.

fm-117 avatar Oct 24 '24 10:10 fm-117