{-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE BinaryLiterals #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Language.Haskell.LSP.Types.MessageFuncs (
fmClientInitializeRequest
, fmClientInitializedNotification
, fmClientShutdownRequest
, fmClientExitNotification
, fmClientCancelNotification
, fmServerShowMessageNotification
, fmServerShowMessageRequest
, fmServerLogMessageNotification
, fmServerWorkDoneProgressBeginNotification
, fmServerWorkDoneProgressReportNotification
, fmServerWorkDoneProgressEndNotification
, fmServerWorkDoneProgressCreateRequest
, fmServerTelemetryNotification
, fmServerRegisterCapabilityRequest
, fmServerUnregisterCapabilityRequest
, fmClientDidChangeConfigurationNotification
, fmClientDidChangeWatchedFilesNotification
, fmClientWorkspaceSymbolRequest
, fmClientExecuteCommandRequest
, fmServerApplyWorkspaceEditRequest
, fmServerPublishDiagnosticsNotification
, fmClientDidOpenTextDocumentNotification
, fmClientDidChangeTextDocumentNotification
, fmClientWillSaveTextDocumentNotification
, fmClientWillSaveWaitUntilRequest
, fmClientDidSaveTextDocumentNotification
, fmClientDidCloseTextDocumentNotification
, fmClientCompletionRequest
, fmClientCompletionItemResolveRequest
, fmClientHoverRequest
, fmClientSignatureHelpRequest
, fmClientReferencesRequest
, fmClientDocumentHighlightRequest
, fmClientDocumentSymbolRequest
, fmClientDocumentFormattingRequest
, fmClientDocumentRangeFormattingRequest
, fmClientDocumentOnTypeFormattingRequest
, fmClientDefinitionRequest
, fmClientCodeActionRequest
, fmClientCodeLensRequest
, fmClientCodeLensResolveRequest
, fmClientDocumentLinkRequest
, fmClientDocumentLinkResolveRequest
, fmClientRenameRequest
) where
import qualified Data.Aeson as J
import Data.Text ( Text )
import qualified Language.Haskell.LSP.Types as J
{-# ANN module ("HLint: ignore Eta reduce" :: String) #-}
{-# ANN module ("HLint: ignore Redundant do" :: String) #-}
{-# ANN module ("HLint: ignore Reduce duplication" :: String) #-}
fmClientInitializeRequest :: J.LspId -> J.InitializeParams -> J.InitializeRequest
fmClientInitializeRequest rid params
= J.RequestMessage "2.0" rid J.Initialize params
fmClientInitializedNotification :: J.InitializedNotification
fmClientInitializedNotification = J.NotificationMessage "2.0" J.Initialized Nothing
fmClientShutdownRequest :: J.LspId -> Maybe J.Value -> J.ShutdownRequest
fmClientShutdownRequest rid params
= J.RequestMessage "2.0" rid J.Shutdown params
fmClientExitNotification :: J.ExitNotification
fmClientExitNotification = J.NotificationMessage "2.0" J.Exit Nothing
fmClientCancelNotification :: J.LspId -> J.CancelNotification
fmClientCancelNotification idToCancel
= J.NotificationMessage "2.0" J.CancelRequest (J.CancelParams idToCancel)
fmServerShowMessageNotification :: J.MessageType -> Text -> J.ShowMessageNotification
fmServerShowMessageNotification mt msg
= J.NotificationMessage "2.0" J.WindowShowMessage (J.ShowMessageParams mt msg)
fmServerShowMessageRequest :: J.LspId -> J.ShowMessageRequestParams -> J.ShowMessageRequest
fmServerShowMessageRequest rid params
= J.RequestMessage "2.0" rid J.WindowShowMessageRequest params
fmServerLogMessageNotification :: J.MessageType -> Text -> J.LogMessageNotification
fmServerLogMessageNotification mt msg
= J.NotificationMessage "2.0" J.WindowLogMessage (J.LogMessageParams mt msg)
fmServerWorkDoneProgressBeginNotification :: J.ProgressParams J.WorkDoneProgressBeginParams -> J.WorkDoneProgressBeginNotification
fmServerWorkDoneProgressBeginNotification params
= J.NotificationMessage "2.0" J.Progress params
fmServerWorkDoneProgressReportNotification :: J.ProgressParams J.WorkDoneProgressReportParams -> J.WorkDoneProgressReportNotification
fmServerWorkDoneProgressReportNotification params
= J.NotificationMessage "2.0" J.Progress params
fmServerWorkDoneProgressEndNotification :: J.ProgressParams J.WorkDoneProgressEndParams -> J.WorkDoneProgressEndNotification
fmServerWorkDoneProgressEndNotification params
= J.NotificationMessage "2.0" J.Progress params
fmServerWorkDoneProgressCreateRequest :: J.LspId -> J.WorkDoneProgressCreateParams -> J.WorkDoneProgressCreateRequest
fmServerWorkDoneProgressCreateRequest rid params
= J.RequestMessage "2.0" rid J.WindowWorkDoneProgressCreate params
fmServerTelemetryNotification :: J.Value -> J.TelemetryNotification
fmServerTelemetryNotification params
= J.NotificationMessage "2.0" J.TelemetryEvent params
fmServerRegisterCapabilityRequest :: J.LspId -> J.RegistrationParams -> J.RegisterCapabilityRequest
fmServerRegisterCapabilityRequest rid params
= J.RequestMessage "2.0" rid J.ClientRegisterCapability params
fmServerUnregisterCapabilityRequest :: J.LspId -> J.UnregistrationParams -> J.UnregisterCapabilityRequest
fmServerUnregisterCapabilityRequest rid params
= J.RequestMessage "2.0" rid J.ClientUnregisterCapability params
fmClientDidChangeConfigurationNotification :: J.DidChangeConfigurationParams -> J.DidChangeConfigurationNotification
fmClientDidChangeConfigurationNotification params
= J.NotificationMessage "2.0" J.WorkspaceDidChangeConfiguration params
fmClientDidChangeWatchedFilesNotification :: J.DidChangeWatchedFilesParams -> J.DidChangeWatchedFilesNotification
fmClientDidChangeWatchedFilesNotification params
= J.NotificationMessage "2.0" J.WorkspaceDidChangeWatchedFiles params
fmClientWorkspaceSymbolRequest :: J.LspId -> J.WorkspaceSymbolParams -> J.WorkspaceSymbolRequest
fmClientWorkspaceSymbolRequest rid params
= J.RequestMessage "2.0" rid J.WorkspaceSymbol params
fmClientExecuteCommandRequest :: J.LspId -> J.ExecuteCommandParams -> J.ExecuteCommandRequest
fmClientExecuteCommandRequest rid params
= J.RequestMessage "2.0" rid J.WorkspaceExecuteCommand params
fmServerApplyWorkspaceEditRequest :: J.LspId -> J.ApplyWorkspaceEditParams -> J.ApplyWorkspaceEditRequest
fmServerApplyWorkspaceEditRequest rid params
= J.RequestMessage "2.0" rid J.WorkspaceApplyEdit params
fmServerPublishDiagnosticsNotification :: J.PublishDiagnosticsParams -> J.PublishDiagnosticsNotification
fmServerPublishDiagnosticsNotification params
= J.NotificationMessage "2.0" J.TextDocumentPublishDiagnostics params
fmClientDidOpenTextDocumentNotification :: J.DidOpenTextDocumentParams -> J.DidOpenTextDocumentNotification
fmClientDidOpenTextDocumentNotification params
= J.NotificationMessage "2.0" J.TextDocumentDidOpen params
fmClientDidChangeTextDocumentNotification :: J.DidChangeTextDocumentParams -> J.DidChangeTextDocumentNotification
fmClientDidChangeTextDocumentNotification params
= J.NotificationMessage "2.0" J.TextDocumentDidChange params
fmClientWillSaveTextDocumentNotification :: J.WillSaveTextDocumentParams -> J.WillSaveTextDocumentNotification
fmClientWillSaveTextDocumentNotification params
= J.NotificationMessage "2.0" J.TextDocumentWillSave params
fmClientWillSaveWaitUntilRequest :: J.LspId -> J.WillSaveTextDocumentParams -> J.WillSaveWaitUntilTextDocumentRequest
fmClientWillSaveWaitUntilRequest rid params
= J.RequestMessage "2.0" rid J.TextDocumentWillSaveWaitUntil params
fmClientDidSaveTextDocumentNotification :: J.DidSaveTextDocumentParams -> J.DidSaveTextDocumentNotification
fmClientDidSaveTextDocumentNotification params
= J.NotificationMessage "2.0" J.TextDocumentDidSave params
fmClientDidCloseTextDocumentNotification :: J.DidCloseTextDocumentParams -> J.DidCloseTextDocumentNotification
fmClientDidCloseTextDocumentNotification params
= J.NotificationMessage "2.0" J.TextDocumentDidClose params
fmClientCompletionRequest :: J.LspId -> J.CompletionParams -> J.CompletionRequest
fmClientCompletionRequest rid params
= J.RequestMessage "2.0" rid J.TextDocumentCompletion params
fmClientCompletionItemResolveRequest :: J.LspId -> J.CompletionItem -> J.CompletionItemResolveRequest
fmClientCompletionItemResolveRequest rid params
= J.RequestMessage "2.0" rid J.CompletionItemResolve params
fmClientHoverRequest :: J.LspId -> J.TextDocumentPositionParams -> J.HoverRequest
fmClientHoverRequest rid params
= J.RequestMessage "2.0" rid J.TextDocumentHover params
fmClientSignatureHelpRequest :: J.LspId -> J.TextDocumentPositionParams -> J.SignatureHelpRequest
fmClientSignatureHelpRequest rid params
= J.RequestMessage "2.0" rid J.TextDocumentSignatureHelp params
fmClientReferencesRequest :: J.LspId -> J.ReferenceParams -> J.ReferencesRequest
fmClientReferencesRequest rid params
= J.RequestMessage "2.0" rid J.TextDocumentReferences params
fmClientDocumentHighlightRequest :: J.LspId -> J.TextDocumentPositionParams -> J.DocumentHighlightRequest
fmClientDocumentHighlightRequest rid params
= J.RequestMessage "2.0" rid J.TextDocumentDocumentHighlight params
fmClientDocumentSymbolRequest :: J.LspId -> J.DocumentSymbolParams -> J.DocumentSymbolRequest
fmClientDocumentSymbolRequest rid params
= J.RequestMessage "2.0" rid J.TextDocumentDocumentSymbol params
fmClientDocumentFormattingRequest :: J.LspId -> J.DocumentFormattingParams -> J.DocumentFormattingRequest
fmClientDocumentFormattingRequest rid params
= J.RequestMessage "2.0" rid J.TextDocumentFormatting params
fmClientDocumentRangeFormattingRequest :: J.LspId -> J.DocumentRangeFormattingParams -> J.DocumentRangeFormattingRequest
fmClientDocumentRangeFormattingRequest rid params
= J.RequestMessage "2.0" rid J.TextDocumentRangeFormatting params
fmClientDocumentOnTypeFormattingRequest :: J.LspId -> J.DocumentOnTypeFormattingParams -> J.DocumentOnTypeFormattingRequest
fmClientDocumentOnTypeFormattingRequest rid params
= J.RequestMessage "2.0" rid J.TextDocumentOnTypeFormatting params
fmClientDefinitionRequest :: J.LspId -> J.TextDocumentPositionParams -> J.DefinitionRequest
fmClientDefinitionRequest rid params
= J.RequestMessage "2.0" rid J.TextDocumentDefinition params
fmClientCodeActionRequest :: J.LspId -> J.CodeActionParams -> J.CodeActionRequest
fmClientCodeActionRequest rid params
= J.RequestMessage "2.0" rid J.TextDocumentCodeAction params
fmClientCodeLensRequest :: J.LspId -> J.CodeLensParams -> J.CodeLensRequest
fmClientCodeLensRequest rid params
= J.RequestMessage "2.0" rid J.TextDocumentCodeLens params
fmClientCodeLensResolveRequest :: J.LspId -> J.CodeLens -> J.CodeLensResolveRequest
fmClientCodeLensResolveRequest rid params
= J.RequestMessage "2.0" rid J.CodeLensResolve params
fmClientDocumentLinkRequest :: J.LspId -> J.DocumentLinkParams -> J.DocumentLinkRequest
fmClientDocumentLinkRequest rid params
= J.RequestMessage "2.0" rid J.TextDocumentDocumentLink params
fmClientDocumentLinkResolveRequest :: J.LspId -> J.DocumentLink -> J.DocumentLinkResolveRequest
fmClientDocumentLinkResolveRequest rid params
= J.RequestMessage "2.0" rid J.DocumentLinkResolve params
fmClientRenameRequest :: J.LspId -> J.RenameParams -> J.RenameRequest
fmClientRenameRequest rid params
= J.RequestMessage "2.0" rid J.TextDocumentRename params
fmClientPrepareRenameRequest :: J.LspId -> J.TextDocumentPositionParams -> J.PrepareRenameRequest
fmClientPrepareRenameRequest rid params
= J.RequestMessage "2.0" rid J.TextDocumentPrepareRename params