TypeCobol
TypeCobol copied to clipboard
Convert window/showMessage notifications to telemetry/event
Child of #2668.
This is a minimalistic approach to LS exception tracking :
- in
TypeCobolServerHost
, as soon as theTypeCobolServer
instance is available , add a newILogger
.- this new logger would be responsible for sending a
telemetry/event
as described in #2668 when theLogException
method is called. It will be naturally dependent from theTypeCobolServer
as it requires to send JSON to the client.
- this new logger would be responsible for sending a
- remove the call to
ShowErrorMessage
fromNotifyException
and move it toUnhandledExceptionHandler
, to ensure a message is still displayed in the event of a server crash.