lsp-2.7.0.0: Haskell library for the Microsoft Language Server Protocol
Safe HaskellSafe-Inferred
LanguageGHC2021

Language.LSP.Logging

Synopsis

Documentation

logToShowMessage :: MonadLsp c m => LogAction m (WithSeverity Text) Source #

Logs messages to the client via window/showMessage.

logToLogMessage :: MonadLsp c m => LogAction m (WithSeverity Text) Source #

Logs messages to the client via window/logMessage.

defaultClientLogger :: MonadLsp c m => LogAction m (WithSeverity Text) Source #

A sensible log action for logging messages to the client:

  • Shows Error logs to the user via window/showMessage
  • Logs Info and above logs in the client via window/logMessage

If you want finer control (e.g. the ability to log Debug logs based on a flag, or similar), then do not use this and write your own based on logToShowMessage and logToLogMessage.