{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE TemplateHaskell #-}
module Language.LSP.Types.Implementation 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 ImplementationClientCapabilities = ImplementationClientCapabilities
{
ImplementationClientCapabilities -> Maybe Bool
_dynamicRegistration :: Maybe Bool,
ImplementationClientCapabilities -> Maybe Bool
_linkSupport :: Maybe Bool
}
deriving (ReadPrec [ImplementationClientCapabilities]
ReadPrec ImplementationClientCapabilities
Int -> ReadS ImplementationClientCapabilities
ReadS [ImplementationClientCapabilities]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImplementationClientCapabilities]
$creadListPrec :: ReadPrec [ImplementationClientCapabilities]
readPrec :: ReadPrec ImplementationClientCapabilities
$creadPrec :: ReadPrec ImplementationClientCapabilities
readList :: ReadS [ImplementationClientCapabilities]
$creadList :: ReadS [ImplementationClientCapabilities]
readsPrec :: Int -> ReadS ImplementationClientCapabilities
$creadsPrec :: Int -> ReadS ImplementationClientCapabilities
Read, Int -> ImplementationClientCapabilities -> ShowS
[ImplementationClientCapabilities] -> ShowS
ImplementationClientCapabilities -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImplementationClientCapabilities] -> ShowS
$cshowList :: [ImplementationClientCapabilities] -> ShowS
show :: ImplementationClientCapabilities -> String
$cshow :: ImplementationClientCapabilities -> String
showsPrec :: Int -> ImplementationClientCapabilities -> ShowS
$cshowsPrec :: Int -> ImplementationClientCapabilities -> ShowS
Show, ImplementationClientCapabilities
-> ImplementationClientCapabilities -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImplementationClientCapabilities
-> ImplementationClientCapabilities -> Bool
$c/= :: ImplementationClientCapabilities
-> ImplementationClientCapabilities -> Bool
== :: ImplementationClientCapabilities
-> ImplementationClientCapabilities -> Bool
$c== :: ImplementationClientCapabilities
-> ImplementationClientCapabilities -> Bool
Eq)
deriveJSON lspOptions ''ImplementationClientCapabilities
makeExtendingDatatype "ImplementationOptions" [''WorkDoneProgressOptions] []
deriveJSON lspOptions ''ImplementationOptions
makeExtendingDatatype "ImplementationRegistrationOptions"
[ ''TextDocumentRegistrationOptions
, ''ImplementationOptions
, ''StaticRegistrationOptions
] []
deriveJSON lspOptions ''ImplementationRegistrationOptions
makeExtendingDatatype "ImplementationParams"
[ ''TextDocumentPositionParams
, ''WorkDoneProgressParams
, ''PartialResultParams
] []
deriveJSON lspOptions ''ImplementationParams