{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE TemplateHaskell #-}
module Language.LSP.Types.Declaration where
import Data.Aeson.TH
import Language.LSP.Types.Progress
import Language.LSP.Types.StaticRegistrationOptions
import Language.LSP.Types.TextDocument
import Language.LSP.Types.Utils
data DeclarationClientCapabilities =
DeclarationClientCapabilities
{
_dynamicRegistration :: Maybe Bool
, _linkSupport :: Maybe Bool
}
deriving (Read, Show, Eq)
deriveJSON lspOptions ''DeclarationClientCapabilities
makeExtendingDatatype "DeclarationOptions" [''WorkDoneProgressOptions] []
deriveJSON lspOptions ''DeclarationOptions
makeExtendingDatatype "DeclarationRegistrationOptions"
[ ''DeclarationOptions
, ''TextDocumentRegistrationOptions
, ''StaticRegistrationOptions
] []
deriveJSON lspOptions ''DeclarationRegistrationOptions
makeExtendingDatatype "DeclarationParams"
[ ''TextDocumentPositionParams
, ''WorkDoneProgressParams
, ''PartialResultParams
] []
deriveJSON lspOptions ''DeclarationParams