lsp-types-1.0.0.0: Haskell library for the Microsoft Language Server Protocol, data types

Safe HaskellNone
LanguageHaskell2010

Language.LSP.Types

Synopsis

Documentation

data CodeActionKind Source #

Constructors

CodeActionEmpty

Empty kind.

CodeActionQuickFix

Base kind for quickfix actions: quickfix.

CodeActionRefactor

Base kind for refactoring actions: refactor.

CodeActionRefactorExtract

Base kind for refactoring extraction actions: refactor.extract. Example extract actions:

  • Extract method
  • Extract function
  • Extract variable
  • Extract interface from class
  • ...
CodeActionRefactorInline

Base kind for refactoring inline actions: refactor.inline.

Example inline actions:

  • Inline function
  • Inline variable
  • Inline constant
  • ...
CodeActionRefactorRewrite

Base kind for refactoring rewrite actions: refactor.rewrite.

Example rewrite actions:

  • Convert JavaScript function to class
  • Add or remove parameter
  • Encapsulate field
  • Make method static
  • Move method to base class
  • ...
CodeActionSource

Base kind for source actions: source.

Source code actions apply to the entire file.

CodeActionSourceOrganizeImports

Base kind for an organize imports source action: source.organizeImports.

CodeActionUnknown Text 
Instances
Eq CodeActionKind Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Read CodeActionKind Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Show CodeActionKind Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

ToJSON CodeActionKind Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

FromJSON CodeActionKind Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

HasValueSet CodeActionKindClientCapabilities (List CodeActionKind) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasKind CodeAction (Maybe CodeActionKind) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCodeActionKinds CodeActionOptions (Maybe (List CodeActionKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCodeActionKinds CodeActionRegistrationOptions (Maybe (List CodeActionKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasOnly CodeActionContext (Maybe (List CodeActionKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CodeActionKindClientCapabilities Source #

Constructors

CodeActionKindClientCapabilities 

Fields

  • _valueSet :: List CodeActionKind

    The code action kind values the client supports. When this property exists the client also guarantees that it will handle values outside its set gracefully and falls back to a default value when unknown.

Instances
Eq CodeActionKindClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Read CodeActionKindClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Show CodeActionKindClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

ToJSON CodeActionKindClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

FromJSON CodeActionKindClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Default CodeActionKindClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

HasCodeActionKind CodeActionLiteralSupport CodeActionKindClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasValueSet CodeActionKindClientCapabilities (List CodeActionKind) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CodeActionLiteralSupport Source #

Constructors

CodeActionLiteralSupport 

Fields

Instances
Eq CodeActionLiteralSupport Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Read CodeActionLiteralSupport Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Show CodeActionLiteralSupport Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

ToJSON CodeActionLiteralSupport Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

FromJSON CodeActionLiteralSupport Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

HasCodeActionKind CodeActionLiteralSupport CodeActionKindClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCodeActionLiteralSupport CodeActionClientCapabilities (Maybe CodeActionLiteralSupport) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CodeActionClientCapabilities Source #

Constructors

CodeActionClientCapabilities 

Fields

Instances
Eq CodeActionClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Read CodeActionClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Show CodeActionClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

ToJSON CodeActionClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

FromJSON CodeActionClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

HasDynamicRegistration CodeActionClientCapabilities (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCodeAction TextDocumentClientCapabilities (Maybe CodeActionClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasIsPreferredSupport CodeActionClientCapabilities (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCodeActionLiteralSupport CodeActionClientCapabilities (Maybe CodeActionLiteralSupport) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CodeActionOptions Source #

Instances
Eq CodeActionOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Read CodeActionOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Show CodeActionOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

ToJSON CodeActionOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

FromJSON CodeActionOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

HasWorkDoneProgress CodeActionOptions (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCodeActionProvider ServerCapabilities (Maybe (Bool |? CodeActionOptions)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCodeActionKinds CodeActionOptions (Maybe (List CodeActionKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CodeActionRegistrationOptions Source #

Instances
Eq CodeActionRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Read CodeActionRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Show CodeActionRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

ToJSON CodeActionRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

FromJSON CodeActionRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

HasWorkDoneProgress CodeActionRegistrationOptions (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector CodeActionRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCodeActionKinds CodeActionRegistrationOptions (Maybe (List CodeActionKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CodeActionContext Source #

Contains additional diagnostic information about the context in which a code action is run.

Constructors

CodeActionContext 

Fields

  • _diagnostics :: List Diagnostic

    An array of diagnostics known on the client side overlapping the range provided to the textDocument/codeAction request. They are provided so that the server knows which errors are currently presented to the user for the given range. There is no guarantee that these accurately reflect the error state of the resource. The primary parameter to compute code actions is the provided range.

  • _only :: Maybe (List CodeActionKind)

    Requested kind of actions to return.

    Actions not of this kind are filtered out by the client before being shown. So servers can omit computing them.

Instances
Eq CodeActionContext Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Read CodeActionContext Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Show CodeActionContext Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

ToJSON CodeActionContext Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

FromJSON CodeActionContext Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

HasContext CodeActionParams CodeActionContext Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDiagnostics CodeActionContext (List Diagnostic) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasOnly CodeActionContext (Maybe (List CodeActionKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CodeActionParams Source #

Instances
Eq CodeActionParams Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Read CodeActionParams Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Show CodeActionParams Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

ToJSON CodeActionParams Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

FromJSON CodeActionParams Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

HasTextDocument CodeActionParams TextDocumentIdentifier Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasRange CodeActionParams Range Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasContext CodeActionParams CodeActionContext Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasWorkDoneToken CodeActionParams (Maybe ProgressToken) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasPartialResultToken CodeActionParams (Maybe ProgressToken) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CodeAction Source #

A code action represents a change that can be performed in code, e.g. to fix a problem or to refactor code.

A CodeAction must set either CodeAction and/or a CodeAction. If both are supplied, the CodeAction is applied first, then the CodeAction is executed.

Constructors

CodeAction 

Fields

  • _title :: Text

    A short, human-readable, title for this code action.

  • _kind :: Maybe CodeActionKind

    The kind of the code action. Used to filter code actions.

  • _diagnostics :: Maybe (List Diagnostic)

    The diagnostics that this code action resolves.

  • _isPreferred :: Maybe Bool

    Marks this as a preferred action. Preferred actions are used by the `auto fix` command and can be targeted by keybindings.

    A quick fix should be marked preferred if it properly addresses the underlying error. A refactoring should be marked preferred if it is the most reasonable choice of actions to take.

    Since LSP 3.15.0

  • _edit :: Maybe WorkspaceEdit

    The workspace edit this code action performs.

  • _command :: Maybe Command

    A command this code action executes. If a code action provides an edit and a command, first the edit is executed and then the command.

Instances
Eq CodeAction Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Read CodeAction Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

Show CodeAction Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

ToJSON CodeAction Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

FromJSON CodeAction Source # 
Instance details

Defined in Language.LSP.Types.CodeAction

HasTitle CodeAction Text Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDiagnostics CodeAction (Maybe (List Diagnostic)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCommand CodeAction (Maybe Command) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasEdit CodeAction (Maybe WorkspaceEdit) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasKind CodeAction (Maybe CodeActionKind) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasIsPreferred CodeAction (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CodeLensClientCapabilities Source #

Constructors

CodeLensClientCapabilities 

Fields

Instances
Eq CodeLensClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

Read CodeLensClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

Show CodeLensClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

ToJSON CodeLensClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

FromJSON CodeLensClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

HasDynamicRegistration CodeLensClientCapabilities (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCodeLens TextDocumentClientCapabilities (Maybe CodeLensClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CodeLensOptions Source #

Instances
Eq CodeLensOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

Read CodeLensOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

Show CodeLensOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

ToJSON CodeLensOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

FromJSON CodeLensOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

HasWorkDoneProgress CodeLensOptions (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasResolveProvider CodeLensOptions (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCodeLensProvider ServerCapabilities (Maybe CodeLensOptions) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CodeLensRegistrationOptions Source #

Instances
Eq CodeLensRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

Read CodeLensRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

Show CodeLensRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

ToJSON CodeLensRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

FromJSON CodeLensRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

HasWorkDoneProgress CodeLensRegistrationOptions (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasResolveProvider CodeLensRegistrationOptions (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector CodeLensRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CodeLensParams Source #

Instances
Eq CodeLensParams Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

Read CodeLensParams Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

Show CodeLensParams Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

ToJSON CodeLensParams Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

FromJSON CodeLensParams Source # 
Instance details

Defined in Language.LSP.Types.CodeLens

HasTextDocument CodeLensParams TextDocumentIdentifier Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasWorkDoneToken CodeLensParams (Maybe ProgressToken) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasPartialResultToken CodeLensParams (Maybe ProgressToken) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CodeLens Source #

A code lens represents a command that should be shown along with source text, like the number of references, a way to run tests, etc.

A code lens is _unresolved_ when no command is associated to it. For performance reasons the creation of a code lens and resolving should be done in two stages.

Constructors

CodeLens 

Fields

  • _range :: Range

    The range in which this code lens is valid. Should only span a single line.

  • _command :: Maybe Command

    The command this code lens represents.

  • _xdata :: Maybe Value

    A data entry field that is preserved on a code lens item between a code lens and a code lens resolve request.

data ExecuteCommandClientCapabilities Source #

Constructors

ExecuteCommandClientCapabilities 

Fields

Instances
Eq ExecuteCommandClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Command

Read ExecuteCommandClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Command

Show ExecuteCommandClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Command

ToJSON ExecuteCommandClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Command

FromJSON ExecuteCommandClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Command

HasDynamicRegistration ExecuteCommandClientCapabilities (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasExecuteCommand WorkspaceClientCapabilities (Maybe ExecuteCommandClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data ExecuteCommandOptions Source #

Instances
Eq ExecuteCommandOptions Source # 
Instance details

Defined in Language.LSP.Types.Command

Read ExecuteCommandOptions Source # 
Instance details

Defined in Language.LSP.Types.Command

Show ExecuteCommandOptions Source # 
Instance details

Defined in Language.LSP.Types.Command

ToJSON ExecuteCommandOptions Source # 
Instance details

Defined in Language.LSP.Types.Command

FromJSON ExecuteCommandOptions Source # 
Instance details

Defined in Language.LSP.Types.Command

HasWorkDoneProgress ExecuteCommandOptions (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCommands ExecuteCommandOptions (List Text) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasExecuteCommandProvider ServerCapabilities (Maybe ExecuteCommandOptions) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data ExecuteCommandRegistrationOptions Source #

Instances
Eq ExecuteCommandRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.Command

Read ExecuteCommandRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.Command

Show ExecuteCommandRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.Command

ToJSON ExecuteCommandRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.Command

FromJSON ExecuteCommandRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.Command

HasWorkDoneProgress ExecuteCommandRegistrationOptions (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCommands ExecuteCommandRegistrationOptions (List Text) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data ExecuteCommandParams Source #

Instances
Eq ExecuteCommandParams Source # 
Instance details

Defined in Language.LSP.Types.Command

Read ExecuteCommandParams Source # 
Instance details

Defined in Language.LSP.Types.Command

Show ExecuteCommandParams Source # 
Instance details

Defined in Language.LSP.Types.Command

ToJSON ExecuteCommandParams Source # 
Instance details

Defined in Language.LSP.Types.Command

FromJSON ExecuteCommandParams Source # 
Instance details

Defined in Language.LSP.Types.Command

HasCommand ExecuteCommandParams Text Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasWorkDoneToken ExecuteCommandParams (Maybe ProgressToken) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasArguments ExecuteCommandParams (Maybe (List Value)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data Command Source #

Constructors

Command 

Fields

Instances
Eq Command Source # 
Instance details

Defined in Language.LSP.Types.Command

Methods

(==) :: Command -> Command -> Bool #

(/=) :: Command -> Command -> Bool #

Read Command Source # 
Instance details

Defined in Language.LSP.Types.Command

Show Command Source # 
Instance details

Defined in Language.LSP.Types.Command

ToJSON Command Source # 
Instance details

Defined in Language.LSP.Types.Command

FromJSON Command Source # 
Instance details

Defined in Language.LSP.Types.Command

HasCommand Command Text Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasTitle Command Text Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCommand CodeLens (Maybe Command) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCommand CompletionItem (Maybe Command) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCommand CodeAction (Maybe Command) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasArguments Command (Maybe (List Value)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data a |? b infixr 9 Source #

A terser, isomorphic data type for Either, that does not get tagged when converting to and from JSON.

Constructors

InL a 
InR b 
Instances
HasColorProvider ServerCapabilities (Maybe (Bool |? (DocumentColorOptions |? DocumentColorRegistrationOptions))) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasSave TextDocumentSyncOptions (Maybe (Bool |? SaveOptions)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasChangeNotifications WorkspaceFoldersServerCapabilities (Maybe (Text |? Bool)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasTypeDefinitionProvider ServerCapabilities (Maybe (Bool |? (TypeDefinitionOptions |? TypeDefinitionRegistrationOptions))) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasTextDocumentSync ServerCapabilities (Maybe (TextDocumentSyncOptions |? TextDocumentSyncKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasSelectionRangeProvider ServerCapabilities (Maybe (Bool |? (SelectionRangeOptions |? SelectionRangeRegistrationOptions))) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasRenameProvider ServerCapabilities (Maybe (Bool |? RenameOptions)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasReferencesProvider ServerCapabilities (Maybe (Bool |? ReferenceOptions)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasImplementationProvider ServerCapabilities (Maybe (Bool |? (ImplementationOptions |? ImplementationRegistrationOptions))) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasHoverProvider ServerCapabilities (Maybe (Bool |? HoverOptions)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasFoldingRangeProvider ServerCapabilities (Maybe (Bool |? (FoldingRangeOptions |? FoldingRangeRegistrationOptions))) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSymbolProvider ServerCapabilities (Maybe (Bool |? DocumentSymbolOptions)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentRangeFormattingProvider ServerCapabilities (Maybe (Bool |? DocumentRangeFormattingOptions)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentHighlightProvider ServerCapabilities (Maybe (Bool |? DocumentHighlightOptions)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentFormattingProvider ServerCapabilities (Maybe (Bool |? DocumentFormattingOptions)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDefinitionProvider ServerCapabilities (Maybe (Bool |? DefinitionOptions)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDeclarationProvider ServerCapabilities (Maybe (Bool |? (DeclarationOptions |? DeclarationRegistrationOptions))) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCodeActionProvider ServerCapabilities (Maybe (Bool |? CodeActionOptions)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCode Diagnostic (Maybe (Int |? String)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

(Eq a, Eq b) => Eq (a |? b) Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

(==) :: (a |? b) -> (a |? b) -> Bool #

(/=) :: (a |? b) -> (a |? b) -> Bool #

(Ord a, Ord b) => Ord (a |? b) Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

compare :: (a |? b) -> (a |? b) -> Ordering #

(<) :: (a |? b) -> (a |? b) -> Bool #

(<=) :: (a |? b) -> (a |? b) -> Bool #

(>) :: (a |? b) -> (a |? b) -> Bool #

(>=) :: (a |? b) -> (a |? b) -> Bool #

max :: (a |? b) -> (a |? b) -> a |? b #

min :: (a |? b) -> (a |? b) -> a |? b #

(Read a, Read b) => Read (a |? b) Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

readsPrec :: Int -> ReadS (a |? b) #

readList :: ReadS [a |? b] #

readPrec :: ReadPrec (a |? b) #

readListPrec :: ReadPrec [a |? b] #

(Show a, Show b) => Show (a |? b) Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

showsPrec :: Int -> (a |? b) -> ShowS #

show :: (a |? b) -> String #

showList :: [a |? b] -> ShowS #

Generic (a |? b) Source # 
Instance details

Defined in Language.LSP.Types.Common

Associated Types

type Rep (a |? b) :: Type -> Type #

Methods

from :: (a |? b) -> Rep (a |? b) x #

to :: Rep (a |? b) x -> a |? b #

(ToJSON a, ToJSON b) => ToJSON (a |? b) Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

toJSON :: (a |? b) -> Value #

toEncoding :: (a |? b) -> Encoding #

toJSONList :: [a |? b] -> Value #

toEncodingList :: [a |? b] -> Encoding #

(FromJSON a, FromJSON b) => FromJSON (a |? b) Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

parseJSON :: Value -> Parser (a |? b) #

parseJSONList :: Value -> Parser [a |? b] #

(NFData a, NFData b) => NFData (a |? b) Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

rnf :: (a |? b) -> () #

type Rep (a |? b) Source # 
Instance details

Defined in Language.LSP.Types.Common

type Rep (a |? b) = D1 (MetaData "|?" "Language.LSP.Types.Common" "lsp-types-1.0.0.0-4tl9hJ01Xf3Dwl9RCbFmlD" False) (C1 (MetaCons "InL" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a)) :+: C1 (MetaCons "InR" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 b)))

toEither :: (a |? b) -> Either a b Source #

newtype List a Source #

All LSP types representing a list **must** use this type rather than '[]'. In particular this is necessary to change the FromJSON instance to be compatible with Elisp (where empty lists show up as null)

Constructors

List [a] 
Instances
Functor List Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

fmap :: (a -> b) -> List a -> List b #

(<$) :: a -> List b -> List a #

Foldable List Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

fold :: Monoid m => List m -> m #

foldMap :: Monoid m => (a -> m) -> List a -> m #

foldr :: (a -> b -> b) -> b -> List a -> b #

foldr' :: (a -> b -> b) -> b -> List a -> b #

foldl :: (b -> a -> b) -> b -> List a -> b #

foldl' :: (b -> a -> b) -> b -> List a -> b #

foldr1 :: (a -> a -> a) -> List a -> a #

foldl1 :: (a -> a -> a) -> List a -> a #

toList :: List a -> [a] #

null :: List a -> Bool #

length :: List a -> Int #

elem :: Eq a => a -> List a -> Bool #

maximum :: Ord a => List a -> a #

minimum :: Ord a => List a -> a #

sum :: Num a => List a -> a #

product :: Num a => List a -> a #

Traversable List Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

traverse :: Applicative f => (a -> f b) -> List a -> f (List b) #

sequenceA :: Applicative f => List (f a) -> f (List a) #

mapM :: Monad m => (a -> m b) -> List a -> m (List b) #

sequence :: Monad m => List (m a) -> m (List a) #

HasResourceOperations WorkspaceEditClientCapabilities (Maybe (List ResourceOperationKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentChanges WorkspaceEdit (Maybe (List TextDocumentEdit)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasWorkspaceFolders InitializeParams (Maybe (List WorkspaceFolder)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasValueSet DocumentSymbolKindClientCapabilities (Maybe (List SymbolKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasValueSet PublishDiagnosticsTagsClientCapabilities (List DiagnosticTag) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasValueSet CompletionItemTagsClientCapabilities (List CompletionItemTag) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasValueSet CompletionItemKindClientCapabilities (Maybe (List CompletionItemKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasValueSet CodeActionKindClientCapabilities (List CodeActionKind) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasValueSet WorkspaceSymbolKindClientCapabilities (Maybe (List SymbolKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentationFormat SignatureHelpSignatureInformation (Maybe (List MarkupKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentationFormat CompletionItemClientCapabilities (Maybe (List MarkupKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasContentFormat HoverClientCapabilities (Maybe (List MarkupKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasRelatedInformation Diagnostic (Maybe (List DiagnosticRelatedInformation)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasTriggerCharacters SignatureHelpOptions (Maybe (List String)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasTriggerCharacters SignatureHelpRegistrationOptions (Maybe (List String)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasRetriggerCharacters SignatureHelpOptions (Maybe (List String)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasRetriggerCharacters SignatureHelpRegistrationOptions (Maybe (List String)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCommands ExecuteCommandOptions (List Text) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCommands ExecuteCommandRegistrationOptions (List Text) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasRegistrations RegistrationParams (List SomeRegistration) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector TextDocumentRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector TextDocumentChangeRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector TextDocumentSaveRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector SignatureHelpRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector SelectionRangeRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector RenameRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector HoverRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector DocumentFormattingRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector DocumentRangeFormattingRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector DocumentOnTypeFormattingRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector FoldingRangeRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector DocumentSymbolRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector DocumentLinkRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector DocumentHighlightRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector DeclarationRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector CodeLensRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector DocumentColorRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector CompletionRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector CodeActionRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasUnregisterations UnregistrationParams (List Unregistration) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasItems ConfigurationParams (List ConfigurationItem) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasItems CompletionList (List CompletionItem) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasContentChanges DidChangeTextDocumentParams (List TextDocumentContentChangeEvent) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDiagnostics PublishDiagnosticsParams (List Diagnostic) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDiagnostics CodeActionContext (List Diagnostic) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDiagnostics CodeAction (Maybe (List Diagnostic)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasParameters SignatureInformation (Maybe (List ParameterInformation)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasSignatures SignatureHelp (List SignatureInformation) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasArguments ExecuteCommandParams (Maybe (List Value)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasArguments Command (Maybe (List Value)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasWatchers DidChangeWatchedFilesRegistrationOptions (List FileSystemWatcher) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasChanges DidChangeWatchedFilesParams (List FileEvent) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasChanges WorkspaceEdit (Maybe WorkspaceEditMap) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasTags Diagnostic (Maybe (List DiagnosticTag)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasTags CompletionItem (Maybe (List CompletionItemTag)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCommitCharacters CompletionItem (Maybe (List Text)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasAdditionalTextEdits ColorPresentation (Maybe (List TextEdit)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasAdditionalTextEdits CompletionItem (Maybe (List TextEdit)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCodeActionKinds CodeActionOptions (Maybe (List CodeActionKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCodeActionKinds CodeActionRegistrationOptions (Maybe (List CodeActionKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasOnly CodeActionContext (Maybe (List CodeActionKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasPositions SelectionRangeParams (List Position) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasChildren DocumentSymbol (Maybe (List DocumentSymbol)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasEdits TextDocumentEdit (List TextEdit) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasRemoved WorkspaceFoldersChangeEvent (List WorkspaceFolder) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasAdded WorkspaceFoldersChangeEvent (List WorkspaceFolder) Source # 
Instance details

Defined in Language.LSP.Types.Lens

Eq a => Eq (List a) Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

(==) :: List a -> List a -> Bool #

(/=) :: List a -> List a -> Bool #

Ord a => Ord (List a) Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

compare :: List a -> List a -> Ordering #

(<) :: List a -> List a -> Bool #

(<=) :: List a -> List a -> Bool #

(>) :: List a -> List a -> Bool #

(>=) :: List a -> List a -> Bool #

max :: List a -> List a -> List a #

min :: List a -> List a -> List a #

Read a => Read (List a) Source # 
Instance details

Defined in Language.LSP.Types.Common

Show a => Show (List a) Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

showsPrec :: Int -> List a -> ShowS #

show :: List a -> String #

showList :: [List a] -> ShowS #

Generic (List a) Source # 
Instance details

Defined in Language.LSP.Types.Common

Associated Types

type Rep (List a) :: Type -> Type #

Methods

from :: List a -> Rep (List a) x #

to :: Rep (List a) x -> List a #

Semigroup (List a) Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

(<>) :: List a -> List a -> List a #

sconcat :: NonEmpty (List a) -> List a #

stimes :: Integral b => b -> List a -> List a #

Monoid (List a) Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

mempty :: List a #

mappend :: List a -> List a -> List a #

mconcat :: [List a] -> List a #

ToJSON a => ToJSON (List a) Source # 
Instance details

Defined in Language.LSP.Types.Common

FromJSON a => FromJSON (List a) Source # 
Instance details

Defined in Language.LSP.Types.Common

NFData a => NFData (List a) Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

rnf :: List a -> () #

type Rep (List a) Source # 
Instance details

Defined in Language.LSP.Types.Common

type Rep (List a) = D1 (MetaData "List" "Language.LSP.Types.Common" "lsp-types-1.0.0.0-4tl9hJ01Xf3Dwl9RCbFmlD" True) (C1 (MetaCons "List" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [a])))

data Empty Source #

Constructors

Empty 
Instances
Eq Empty Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

(==) :: Empty -> Empty -> Bool #

(/=) :: Empty -> Empty -> Bool #

Ord Empty Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

compare :: Empty -> Empty -> Ordering #

(<) :: Empty -> Empty -> Bool #

(<=) :: Empty -> Empty -> Bool #

(>) :: Empty -> Empty -> Bool #

(>=) :: Empty -> Empty -> Bool #

max :: Empty -> Empty -> Empty #

min :: Empty -> Empty -> Empty #

Show Empty Source # 
Instance details

Defined in Language.LSP.Types.Common

Methods

showsPrec :: Int -> Empty -> ShowS #

show :: Empty -> String #

showList :: [Empty] -> ShowS #

ToJSON Empty Source # 
Instance details

Defined in Language.LSP.Types.Common

FromJSON Empty Source # 
Instance details

Defined in Language.LSP.Types.Common

data CompletionItemKind Source #

Instances
Eq CompletionItemKind Source # 
Instance details

Defined in Language.LSP.Types.Completion

Ord CompletionItemKind Source # 
Instance details

Defined in Language.LSP.Types.Completion

Read CompletionItemKind Source # 
Instance details

Defined in Language.LSP.Types.Completion

Show CompletionItemKind Source # 
Instance details

Defined in Language.LSP.Types.Completion

ToJSON CompletionItemKind Source # 
Instance details

Defined in Language.LSP.Types.Completion

FromJSON CompletionItemKind Source # 
Instance details

Defined in Language.LSP.Types.Completion

HasValueSet CompletionItemKindClientCapabilities (Maybe (List CompletionItemKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasKind CompletionItem (Maybe CompletionItemKind) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CompletionItemTag Source #

Constructors

CtDeprecated

Render a completion as obsolete, usually using a strike-out.

Instances
Eq CompletionItemTag Source # 
Instance details

Defined in Language.LSP.Types.Completion

Ord CompletionItemTag Source # 
Instance details

Defined in Language.LSP.Types.Completion

Read CompletionItemTag Source # 
Instance details

Defined in Language.LSP.Types.Completion

Show CompletionItemTag Source # 
Instance details

Defined in Language.LSP.Types.Completion

ToJSON CompletionItemTag Source # 
Instance details

Defined in Language.LSP.Types.Completion

FromJSON CompletionItemTag Source # 
Instance details

Defined in Language.LSP.Types.Completion

HasValueSet CompletionItemTagsClientCapabilities (List CompletionItemTag) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasTags CompletionItem (Maybe (List CompletionItemTag)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CompletionItemTagsClientCapabilities Source #

Constructors

CompletionItemTagsClientCapabilities 

Fields

Instances
Eq CompletionItemTagsClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

Read CompletionItemTagsClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

Show CompletionItemTagsClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

ToJSON CompletionItemTagsClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

FromJSON CompletionItemTagsClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

HasValueSet CompletionItemTagsClientCapabilities (List CompletionItemTag) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasTagSupport CompletionItemClientCapabilities (Maybe CompletionItemTagsClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CompletionItemClientCapabilities Source #

Constructors

CompletionItemClientCapabilities 

Fields

  • _snippetSupport :: Maybe Bool

    Client supports snippets as insert text.

    A snippet can define tab stops and placeholders with `$1`, `$2` and `${3:foo}`. `$0` defines the final tab stop, it defaults to the end of the snippet. Placeholders with equal identifiers are linked, that is typing in one will update others too.

  • _commitCharactersSupport :: Maybe Bool

    Client supports commit characters on a completion item.

  • _documentationFormat :: Maybe (List MarkupKind)

    Client supports the follow content formats for the documentation property. The order describes the preferred format of the client.

  • _deprecatedSupport :: Maybe Bool

    Client supports the deprecated property on a completion item.

  • _preselectSupport :: Maybe Bool

    Client supports the preselect property on a completion item.

  • _tagSupport :: Maybe CompletionItemTagsClientCapabilities

    Client supports the tag property on a completion item. Clients supporting tags have to handle unknown tags gracefully. Clients especially need to preserve unknown tags when sending a completion item back to the server in a resolve call.

Instances
Eq CompletionItemClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

Read CompletionItemClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

Show CompletionItemClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

ToJSON CompletionItemClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

FromJSON CompletionItemClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

HasTagSupport CompletionItemClientCapabilities (Maybe CompletionItemTagsClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasSnippetSupport CompletionItemClientCapabilities (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasPreselectSupport CompletionItemClientCapabilities (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentationFormat CompletionItemClientCapabilities (Maybe (List MarkupKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDeprecatedSupport CompletionItemClientCapabilities (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCommitCharactersSupport CompletionItemClientCapabilities (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCompletionItem CompletionClientCapabilities (Maybe CompletionItemClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CompletionItemKindClientCapabilities Source #

Constructors

CompletionItemKindClientCapabilities 

Fields

  • _valueSet :: Maybe (List CompletionItemKind)

    The completion item kind values the client supports. When this property exists the client also guarantees that it will handle values outside its set gracefully and falls back to a default value when unknown.

Instances
Eq CompletionItemKindClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

Read CompletionItemKindClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

Show CompletionItemKindClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

ToJSON CompletionItemKindClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

FromJSON CompletionItemKindClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

HasValueSet CompletionItemKindClientCapabilities (Maybe (List CompletionItemKind)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCompletionItemKind CompletionClientCapabilities (Maybe CompletionItemKindClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CompletionClientCapabilities Source #

Instances
Eq CompletionClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

Read CompletionClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

Show CompletionClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

ToJSON CompletionClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

FromJSON CompletionClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Completion

HasDynamicRegistration CompletionClientCapabilities (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasContextSupport CompletionClientCapabilities (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCompletionItemKind CompletionClientCapabilities (Maybe CompletionItemKindClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCompletionItem CompletionClientCapabilities (Maybe CompletionItemClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCompletion TextDocumentClientCapabilities (Maybe CompletionClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data InsertTextFormat Source #

Constructors

PlainText

The primary text to be inserted is treated as a plain string.

Snippet

The primary text to be inserted is treated as a snippet.

A snippet can define tab stops and placeholders with `$1`, `$2` and `${3:foo}`. `$0` defines the final tab stop, it defaults to the end of the snippet. Placeholders with equal identifiers are linked, that is typing in one will update others too.

See also: https://github.com/Microsoft/vscode/blob/master/src/vs/editor/contrib/snippet/common/snippet.md

data CompletionItem Source #

Constructors

CompletionItem 

Fields

  • _label :: Text

    The label of this completion item. By default also the text that is inserted when selecting this completion.

  • _kind :: Maybe CompletionItemKind
     
  • _tags :: Maybe (List CompletionItemTag)

    Tags for this completion item.

  • _detail :: Maybe Text

    A human-readable string with additional information about this item, like type or symbol information.

  • _documentation :: Maybe CompletionDoc

    A human-readable string that represents a doc-comment.

  • _deprecated :: Maybe Bool

    Indicates if this item is deprecated.

  • _preselect :: Maybe Bool

    Select this item when showing. *Note* that only one completion item can be selected and that the tool / client decides which item that is. The rule is that the *first* item of those that match best is selected.

  • _sortText :: Maybe Text

    A string that should be used when filtering a set of completion items. When falsy the label is used.

  • _filterText :: Maybe Text

    A string that should be used when filtering a set of completion items. When falsy the label is used.

  • _insertText :: Maybe Text

    A string that should be inserted a document when selecting this completion. When falsy the label is used.

  • _insertTextFormat :: Maybe InsertTextFormat

    The format of the insert text. The format applies to both the insertText property and the newText property of a provided textEdit.

  • _textEdit :: Maybe TextEdit

    An edit which is applied to a document when selecting this completion. When an edit is provided the value of insertText is ignored.

    • Note:* The range of the edit must be a single line range and it must contain the position at which completion has been requested.
  • _additionalTextEdits :: Maybe (List TextEdit)

    An optional array of additional text edits that are applied when selecting this completion. Edits must not overlap with the main edit nor with themselves.

  • _commitCharacters :: Maybe (List Text)

    An optional set of characters that when pressed while this completion is active will accept it first and then type that character. *Note* that all commit characters should have `length=1` and that superfluous characters will be ignored.

  • _command :: Maybe Command

    An optional command that is executed *after* inserting this completion. *Note* that additional modifications to the current document should be described with the additionalTextEdits-property.

  • _xdata :: Maybe Value

    An data entry field that is preserved on a completion item between a completion and a completion resolve request.

Instances
Eq CompletionItem Source # 
Instance details

Defined in Language.LSP.Types.Completion

Read CompletionItem Source # 
Instance details

Defined in Language.LSP.Types.Completion

Show CompletionItem Source # 
Instance details

Defined in Language.LSP.Types.Completion

ToJSON CompletionItem Source # 
Instance details

Defined in Language.LSP.Types.Completion

FromJSON CompletionItem Source # 
Instance details

Defined in Language.LSP.Types.Completion

HasLabel CompletionItem Text Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasItems CompletionList (List CompletionItem) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentation CompletionItem (Maybe CompletionDoc) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCommand CompletionItem (Maybe Command) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasKind CompletionItem (Maybe CompletionItemKind) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasXdata CompletionItem (Maybe Value) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasTextEdit CompletionItem (Maybe TextEdit) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasTags CompletionItem (Maybe (List CompletionItemTag)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasSortText CompletionItem (Maybe Text) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasPreselect CompletionItem (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasInsertTextFormat CompletionItem (Maybe InsertTextFormat) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasInsertText CompletionItem (Maybe Text) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasFilterText CompletionItem (Maybe Text) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDetail CompletionItem (Maybe Text) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDeprecated CompletionItem (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCommitCharacters CompletionItem (Maybe (List Text)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasAdditionalTextEdits CompletionItem (Maybe (List TextEdit)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CompletionList Source #

Represents a collection of CompletionItems to be presented in the editor.

Constructors

CompletionList 

Fields

data CompletionTriggerKind Source #

How a completion was triggered

Constructors

CtInvoked

Completion was triggered by typing an identifier (24x7 code complete), manual invocation (e.g Ctrl+Space) or via API.

CtTriggerCharacter

Completion was triggered by a trigger character specified by the triggerCharacters properties of the CompletionRegistrationOptions.

CtTriggerForIncompleteCompletions

Completion was re-triggered as the current completion list is incomplete.

CtUnknown Scientific

An unknown CompletionTriggerKind not yet supported in haskell-lsp.

data CompletionOptions Source #

Instances
Eq CompletionOptions Source # 
Instance details

Defined in Language.LSP.Types.Completion

Read CompletionOptions Source # 
Instance details

Defined in Language.LSP.Types.Completion

Show CompletionOptions Source # 
Instance details

Defined in Language.LSP.Types.Completion

ToJSON CompletionOptions Source # 
Instance details

Defined in Language.LSP.Types.Completion

FromJSON CompletionOptions Source # 
Instance details

Defined in Language.LSP.Types.Completion

HasWorkDoneProgress CompletionOptions (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasTriggerCharacters CompletionOptions (Maybe [String]) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasResolveProvider CompletionOptions (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasAllCommitCharacters CompletionOptions (Maybe [String]) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCompletionProvider ServerCapabilities (Maybe CompletionOptions) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CompletionRegistrationOptions Source #

Instances
Eq CompletionRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.Completion

Read CompletionRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.Completion

Show CompletionRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.Completion

ToJSON CompletionRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.Completion

FromJSON CompletionRegistrationOptions Source # 
Instance details

Defined in Language.LSP.Types.Completion

HasWorkDoneProgress CompletionRegistrationOptions (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasTriggerCharacters CompletionRegistrationOptions (Maybe [String]) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasResolveProvider CompletionRegistrationOptions (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasAllCommitCharacters CompletionRegistrationOptions (Maybe [String]) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSelector CompletionRegistrationOptions (Maybe DocumentSelector) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CompletionContext Source #

Constructors

CompletionContext 

Fields