{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE TemplateHaskell #-}
module Language.LSP.Types.TypeDefinition 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 TypeDefinitionClientCapabilities = TypeDefinitionClientCapabilities
{
_dynamicRegistration :: Maybe Bool,
_linkSupport :: Maybe Bool
}
deriving (Read, Show, Eq)
deriveJSON lspOptions ''TypeDefinitionClientCapabilities
makeExtendingDatatype "TypeDefinitionOptions" [''WorkDoneProgressOptions] []
deriveJSON lspOptions ''TypeDefinitionOptions
makeExtendingDatatype "TypeDefinitionRegistrationOptions"
[ ''TextDocumentRegistrationOptions
, ''TypeDefinitionOptions
, ''StaticRegistrationOptions
] []
deriveJSON lspOptions ''TypeDefinitionRegistrationOptions
makeExtendingDatatype "TypeDefinitionParams"
[ ''TextDocumentPositionParams
, ''WorkDoneProgressParams
, ''PartialResultParams
] []
deriveJSON lspOptions ''TypeDefinitionParams