lsp-types-1.6.0.1: Haskell library for the Microsoft Language Server Protocol, data types
Safe HaskellNone
LanguageHaskell2010

Language.LSP.Types.Capabilities

Synopsis

Documentation

data ClientCapabilities Source #

Constructors

ClientCapabilities 

Fields

Instances

Instances details
Read ClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Show ClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Default ClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Eq ClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

FromJSON ClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

ToJSON ClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

HasCapabilities InitializeParams ClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasExperimental ClientCapabilities (Maybe Object) Source # 
Instance details

Defined in Language.LSP.Types.Lens

Methods

experimental :: Lens' ClientCapabilities (Maybe Object) Source #

HasGeneral ClientCapabilities (Maybe GeneralClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasTextDocument ClientCapabilities (Maybe TextDocumentClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasWindow ClientCapabilities (Maybe WindowClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasWorkspace ClientCapabilities (Maybe WorkspaceClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data WorkspaceClientCapabilities Source #

Constructors

WorkspaceClientCapabilities 

Fields

Instances

Instances details
Read WorkspaceClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Show WorkspaceClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Default WorkspaceClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Eq WorkspaceClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

FromJSON WorkspaceClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

ToJSON WorkspaceClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

HasApplyEdit WorkspaceClientCapabilities (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasConfiguration WorkspaceClientCapabilities (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDidChangeConfiguration WorkspaceClientCapabilities (Maybe DidChangeConfigurationClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDidChangeWatchedFiles WorkspaceClientCapabilities (Maybe DidChangeWatchedFilesClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasExecuteCommand WorkspaceClientCapabilities (Maybe ExecuteCommandClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasSemanticTokens WorkspaceClientCapabilities (Maybe SemanticTokensWorkspaceClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasSymbol WorkspaceClientCapabilities (Maybe WorkspaceSymbolClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasWorkspace ClientCapabilities (Maybe WorkspaceClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasWorkspaceEdit WorkspaceClientCapabilities (Maybe WorkspaceEditClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasWorkspaceFolders WorkspaceClientCapabilities (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data WindowClientCapabilities Source #

Window specific client capabilities.

Constructors

WindowClientCapabilities 

Fields

Instances

Instances details
Read WindowClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Show WindowClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Default WindowClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Eq WindowClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

FromJSON WindowClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

ToJSON WindowClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

HasShowDocument WindowClientCapabilities (Maybe ShowDocumentClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasShowMessage WindowClientCapabilities (Maybe ShowMessageRequestClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasWindow ClientCapabilities (Maybe WindowClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasWorkDoneProgress WindowClientCapabilities (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data RegularExpressionsClientCapabilities Source #

Client capabilities specific to the used markdown parser. @since 3.16.0

Instances

Instances details
Read RegularExpressionsClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Show RegularExpressionsClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Eq RegularExpressionsClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

FromJSON RegularExpressionsClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

ToJSON RegularExpressionsClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

HasEngine RegularExpressionsClientCapabilities Text Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasRegularExpressions GeneralClientCapabilities (Maybe RegularExpressionsClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasVersion RegularExpressionsClientCapabilities (Maybe Text) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data TextDocumentClientCapabilities Source #

Constructors

TextDocumentClientCapabilities 

Fields

Instances

Instances details
Read TextDocumentClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Show TextDocumentClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Default TextDocumentClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Eq TextDocumentClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

FromJSON TextDocumentClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

ToJSON TextDocumentClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

HasCallHierarchy TextDocumentClientCapabilities (Maybe CallHierarchyClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCodeAction TextDocumentClientCapabilities (Maybe CodeActionClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCodeLens TextDocumentClientCapabilities (Maybe CodeLensClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasColorProvider TextDocumentClientCapabilities (Maybe DocumentColorClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCompletion TextDocumentClientCapabilities (Maybe CompletionClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDeclaration TextDocumentClientCapabilities (Maybe DeclarationClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDefinition TextDocumentClientCapabilities (Maybe DefinitionClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentHighlight TextDocumentClientCapabilities (Maybe DocumentHighlightClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentLink TextDocumentClientCapabilities (Maybe DocumentLinkClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentSymbol TextDocumentClientCapabilities (Maybe DocumentSymbolClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasFoldingRange TextDocumentClientCapabilities (Maybe FoldingRangeClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasFormatting TextDocumentClientCapabilities (Maybe DocumentFormattingClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasHover TextDocumentClientCapabilities (Maybe HoverClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasImplementation TextDocumentClientCapabilities (Maybe ImplementationClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasOnTypeFormatting TextDocumentClientCapabilities (Maybe DocumentOnTypeFormattingClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasPublishDiagnostics TextDocumentClientCapabilities (Maybe PublishDiagnosticsClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasRangeFormatting TextDocumentClientCapabilities (Maybe DocumentRangeFormattingClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasReferences TextDocumentClientCapabilities (Maybe ReferencesClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasRename TextDocumentClientCapabilities (Maybe RenameClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasSelectionRange TextDocumentClientCapabilities (Maybe SelectionRangeClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasSemanticTokens TextDocumentClientCapabilities (Maybe SemanticTokensClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasSignatureHelp TextDocumentClientCapabilities (Maybe SignatureHelpClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasSynchronization TextDocumentClientCapabilities (Maybe TextDocumentSyncClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasTextDocument ClientCapabilities (Maybe TextDocumentClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasTypeDefinition TextDocumentClientCapabilities (Maybe TypeDefinitionClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data MessageActionItemClientCapabilities Source #

Capabilities specific to the MessageActionItem type.

Constructors

MessageActionItemClientCapabilities 

Fields

Instances

Instances details
Read MessageActionItemClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Show MessageActionItemClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Eq MessageActionItemClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

FromJSON MessageActionItemClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

ToJSON MessageActionItemClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

HasAdditionalPropertiesSupport MessageActionItemClientCapabilities (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasMessageActionItem ShowMessageRequestClientCapabilities (Maybe MessageActionItemClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data ShowMessageRequestClientCapabilities Source #

Show message request client capabilities

Constructors

ShowMessageRequestClientCapabilities 

Fields

Instances

Instances details
Read ShowMessageRequestClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Show ShowMessageRequestClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Eq ShowMessageRequestClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

FromJSON ShowMessageRequestClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

ToJSON ShowMessageRequestClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

HasMessageActionItem ShowMessageRequestClientCapabilities (Maybe MessageActionItemClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasShowMessage WindowClientCapabilities (Maybe ShowMessageRequestClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data ShowDocumentClientCapabilities Source #

Client capabilities for the show document request.

Since: 3.16.0

Constructors

ShowDocumentClientCapabilities 

Fields

  • _support :: Bool

    The client has support for the show document request

Instances

Instances details
Read ShowDocumentClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Show ShowDocumentClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Eq ShowDocumentClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

FromJSON ShowDocumentClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

ToJSON ShowDocumentClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

HasSupport ShowDocumentClientCapabilities Bool Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasShowDocument WindowClientCapabilities (Maybe ShowDocumentClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data StaleRequestClientCapabilities Source #

Client capability that signals how the client handles stale requests (e.g. a request for which the client will not process the response anymore since the information is outdated). @since 3.17.0

Instances

Instances details
Read StaleRequestClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Show StaleRequestClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Eq StaleRequestClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

FromJSON StaleRequestClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

ToJSON StaleRequestClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

HasCancel StaleRequestClientCapabilities Bool Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasRetryOnContentModified StaleRequestClientCapabilities (List Text) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasStaleRequestSupport GeneralClientCapabilities (Maybe StaleRequestClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data GeneralClientCapabilities Source #

General client capabilities. @since 3.16.0

Constructors

GeneralClientCapabilities 

Fields

Instances

Instances details
Read GeneralClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Show GeneralClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Default GeneralClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

Eq GeneralClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

FromJSON GeneralClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

ToJSON GeneralClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ClientCapabilities

HasGeneral ClientCapabilities (Maybe GeneralClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasMarkdown GeneralClientCapabilities (Maybe MarkdownClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasRegularExpressions GeneralClientCapabilities (Maybe RegularExpressionsClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasStaleRequestSupport GeneralClientCapabilities (Maybe StaleRequestClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data ServerCapabilities Source #

Constructors

ServerCapabilities 

Fields

Instances

Instances details
Read ServerCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ServerCapabilities

Show ServerCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ServerCapabilities

Eq ServerCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ServerCapabilities

FromJSON ServerCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ServerCapabilities

ToJSON ServerCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ServerCapabilities

HasCapabilities InitializeResult ServerCapabilities Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCallHierarchyProvider ServerCapabilities (Maybe (Bool |? (CallHierarchyOptions |? CallHierarchyRegistrationOptions))) Source # 
Instance details

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

HasCodeLensProvider ServerCapabilities (Maybe CodeLensOptions) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasColorProvider ServerCapabilities (Maybe (Bool |? (DocumentColorOptions |? DocumentColorRegistrationOptions))) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasCompletionProvider ServerCapabilities (Maybe CompletionOptions) Source # 
Instance details

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

HasDocumentLinkProvider ServerCapabilities (Maybe DocumentLinkOptions) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentOnTypeFormattingProvider ServerCapabilities (Maybe DocumentOnTypeFormattingOptions) Source # 
Instance details

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

HasExecuteCommandProvider ServerCapabilities (Maybe ExecuteCommandOptions) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasExperimental ServerCapabilities (Maybe Value) Source # 
Instance details

Defined in Language.LSP.Types.Lens

Methods

experimental :: Lens' ServerCapabilities (Maybe Value) Source #

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

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

HasSemanticTokensProvider ServerCapabilities (Maybe (SemanticTokensOptions |? SemanticTokensRegistrationOptions)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasSignatureHelpProvider ServerCapabilities (Maybe SignatureHelpOptions) Source # 
Instance details

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

HasWorkspace ServerCapabilities (Maybe WorkspaceServerCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasWorkspaceSymbolProvider ServerCapabilities (Maybe (Bool |? WorkspaceSymbolOptions)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data WorkspaceFoldersServerCapabilities Source #

Constructors

WorkspaceFoldersServerCapabilities 

Fields

  • _supported :: Maybe Bool

    The server has support for workspace folders

  • _changeNotifications :: Maybe (Text |? Bool)

    Whether the server wants to receive workspace folder change notifications. If a strings is provided the string is treated as a ID under which the notification is registered on the client side. The ID can be used to unregister for these events using the `client/unregisterCapability` request.

Instances

Instances details
Read WorkspaceFoldersServerCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ServerCapabilities

Show WorkspaceFoldersServerCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ServerCapabilities

Eq WorkspaceFoldersServerCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ServerCapabilities

FromJSON WorkspaceFoldersServerCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ServerCapabilities

ToJSON WorkspaceFoldersServerCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ServerCapabilities

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

Defined in Language.LSP.Types.Lens

HasSupported WorkspaceFoldersServerCapabilities (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasWorkspaceFolders WorkspaceServerCapabilities (Maybe WorkspaceFoldersServerCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data WorkspaceServerCapabilities Source #

Constructors

WorkspaceServerCapabilities 

Fields

Instances

Instances details
Read WorkspaceServerCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ServerCapabilities

Show WorkspaceServerCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ServerCapabilities

Eq WorkspaceServerCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ServerCapabilities

FromJSON WorkspaceServerCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ServerCapabilities

ToJSON WorkspaceServerCapabilities Source # 
Instance details

Defined in Language.LSP.Types.ServerCapabilities

HasWorkspace ServerCapabilities (Maybe WorkspaceServerCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasWorkspaceFolders WorkspaceServerCapabilities (Maybe WorkspaceFoldersServerCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data WorkspaceEdit Source #

Constructors

WorkspaceEdit 

Fields

  • _changes :: Maybe WorkspaceEditMap

    Holds changes to existing resources.

  • _documentChanges :: Maybe (List DocumentChange)

    Depending on the client capability `workspace.workspaceEdit.resourceOperations` document changes are either an array of TextDocumentEdits to express changes to n different text documents where each text document edit addresses a specific version of a text document. Or it can contain above TextDocumentEdits mixed with create, rename and delete file / folder operations.

    Whether a client supports versioned document edits is expressed via `workspace.workspaceEdit.documentChanges` client capability.

    If a client neither supports documentChanges nor `workspace.workspaceEdit.resourceOperations` then only plain TextEdits using the changes property are supported.

  • _changeAnnotations :: Maybe ChangeAnnotationMap

    A map of change annotations that can be referenced in AnnotatedTextEdits or create, rename and delete file / folder operations.

    Whether clients honor this property depends on the client capability `workspace.changeAnnotationSupport`.

    Since: 3.16.0

Instances

Instances details
Monoid WorkspaceEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Semigroup WorkspaceEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Read WorkspaceEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Show WorkspaceEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Eq WorkspaceEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSON WorkspaceEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Methods

parseJSON :: Value -> Parser WorkspaceEdit

parseJSONList :: Value -> Parser [WorkspaceEdit]

omittedField :: Maybe WorkspaceEdit

ToJSON WorkspaceEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

HasEdit ApplyWorkspaceEditParams WorkspaceEdit Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasChangeAnnotations WorkspaceEdit (Maybe ChangeAnnotationMap) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasChanges WorkspaceEdit (Maybe WorkspaceEditMap) Source # 
Instance details

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

HasEdit CodeAction (Maybe WorkspaceEdit) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data TextEdit Source #

Constructors

TextEdit 

Fields

Instances

Instances details
Read TextEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Show TextEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Eq TextEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSON TextEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Methods

parseJSON :: Value -> Parser TextEdit

parseJSONList :: Value -> Parser [TextEdit]

omittedField :: Maybe TextEdit

ToJSON TextEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Methods

toJSON :: TextEdit -> Value

toEncoding :: TextEdit -> Encoding

toJSONList :: [TextEdit] -> Value

toEncodingList :: [TextEdit] -> Encoding

omitField :: TextEdit -> Bool

HasNewText TextEdit Text Source # 
Instance details

Defined in Language.LSP.Types.Lens

Methods

newText :: Lens' TextEdit Text Source #

HasRange TextEdit Range Source # 
Instance details

Defined in Language.LSP.Types.Lens

Methods

range :: Lens' TextEdit Range Source #

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

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

HasChanges WorkspaceEdit (Maybe WorkspaceEditMap) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasEdits TextDocumentEdit (List (TextEdit |? AnnotatedTextEdit)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasTextEdit ColorPresentation (Maybe TextEdit) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CreateFile Source #

Create file operation

Constructors

CreateFile 

Fields

Instances

Instances details
Read CreateFile Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Show CreateFile Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Eq CreateFile Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSON CreateFile Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Methods

parseJSON :: Value -> Parser CreateFile

parseJSONList :: Value -> Parser [CreateFile]

omittedField :: Maybe CreateFile

ToJSON CreateFile Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Methods

toJSON :: CreateFile -> Value

toEncoding :: CreateFile -> Encoding

toJSONList :: [CreateFile] -> Value

toEncodingList :: [CreateFile] -> Encoding

omitField :: CreateFile -> Bool

HasUri CreateFile Uri Source # 
Instance details

Defined in Language.LSP.Types.Lens

Methods

uri :: Lens' CreateFile Uri Source #

HasAnnotationId CreateFile (Maybe ChangeAnnotationIdentifier) Source # 
Instance details

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

HasOptions CreateFile (Maybe CreateFileOptions) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data DeleteFile Source #

Delete file operation

Constructors

DeleteFile 

Fields

Instances

Instances details
Read DeleteFile Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Show DeleteFile Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Eq DeleteFile Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSON DeleteFile Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Methods

parseJSON :: Value -> Parser DeleteFile

parseJSONList :: Value -> Parser [DeleteFile]

omittedField :: Maybe DeleteFile

ToJSON DeleteFile Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Methods

toJSON :: DeleteFile -> Value

toEncoding :: DeleteFile -> Encoding

toJSONList :: [DeleteFile] -> Value

toEncodingList :: [DeleteFile] -> Encoding

omitField :: DeleteFile -> Bool

HasUri DeleteFile Uri Source # 
Instance details

Defined in Language.LSP.Types.Lens

Methods

uri :: Lens' DeleteFile Uri Source #

HasAnnotationId DeleteFile (Maybe ChangeAnnotationIdentifier) Source # 
Instance details

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

HasOptions DeleteFile (Maybe DeleteFileOptions) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data AnnotatedTextEdit Source #

Instances

Instances details
Read AnnotatedTextEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Show AnnotatedTextEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Eq AnnotatedTextEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSON AnnotatedTextEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

ToJSON AnnotatedTextEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

HasAnnotationId AnnotatedTextEdit ChangeAnnotationIdentifier Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasNewText AnnotatedTextEdit Text Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasRange AnnotatedTextEdit Range Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasEdits TextDocumentEdit (List (TextEdit |? AnnotatedTextEdit)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data TextDocumentEdit Source #

Instances

Instances details
Read TextDocumentEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Show TextDocumentEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Eq TextDocumentEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSON TextDocumentEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

ToJSON TextDocumentEdit Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

HasTextDocument TextDocumentEdit VersionedTextDocumentIdentifier Source # 
Instance details

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

HasEdits TextDocumentEdit (List (TextEdit |? AnnotatedTextEdit)) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data ChangeAnnotation Source #

Additional information that describes document changes.

Since: 3.16.0

Constructors

ChangeAnnotation 

Fields

  • _label :: Text

    A human-readable string describing the actual change. The string is rendered prominent in the user interface.

  • _needsConfirmation :: Maybe Bool

    A flag which indicates that user confirmation is needed before applying the change.

  • _description :: Maybe Text

    A human-readable string which is rendered less prominent in the user interface.

Instances

Instances details
Read ChangeAnnotation Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Show ChangeAnnotation Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Eq ChangeAnnotation Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSON ChangeAnnotation Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

ToJSON ChangeAnnotation Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

HasLabel ChangeAnnotation Text Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasChangeAnnotations WorkspaceEdit (Maybe ChangeAnnotationMap) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDescription ChangeAnnotation (Maybe Text) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasNeedsConfirmation ChangeAnnotation (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data ApplyWorkspaceEditParams Source #

Constructors

ApplyWorkspaceEditParams 

Fields

  • _label :: Maybe Text

    An optional label of the workspace edit. This label is presented in the user interface for example on an undo stack to undo the workspace edit.

  • _edit :: WorkspaceEdit

    The edits to apply

Instances

Instances details
Read ApplyWorkspaceEditParams Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Show ApplyWorkspaceEditParams Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Eq ApplyWorkspaceEditParams Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSON ApplyWorkspaceEditParams Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

ToJSON ApplyWorkspaceEditParams Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

HasEdit ApplyWorkspaceEditParams WorkspaceEdit Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasLabel ApplyWorkspaceEditParams (Maybe Text) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data RenameFile Source #

Rename file operation

Constructors

RenameFile 

Fields

Instances

Instances details
Read RenameFile Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Show RenameFile Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Eq RenameFile Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSON RenameFile Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Methods

parseJSON :: Value -> Parser RenameFile

parseJSONList :: Value -> Parser [RenameFile]

omittedField :: Maybe RenameFile

ToJSON RenameFile Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Methods

toJSON :: RenameFile -> Value

toEncoding :: RenameFile -> Encoding

toJSONList :: [RenameFile] -> Value

toEncodingList :: [RenameFile] -> Encoding

omitField :: RenameFile -> Bool

HasNewUri RenameFile Uri Source # 
Instance details

Defined in Language.LSP.Types.Lens

Methods

newUri :: Lens' RenameFile Uri Source #

HasOldUri RenameFile Uri Source # 
Instance details

Defined in Language.LSP.Types.Lens

Methods

oldUri :: Lens' RenameFile Uri Source #

HasAnnotationId RenameFile (Maybe ChangeAnnotationIdentifier) Source # 
Instance details

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

HasOptions RenameFile (Maybe RenameFileOptions) Source # 
Instance details

Defined in Language.LSP.Types.Lens

newtype ChangeAnnotationIdentifier Source #

An identifier referring to a change annotation managed by a workspace edit.

Since: 3.16.0

Instances

Instances details
Read ChangeAnnotationIdentifier Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Show ChangeAnnotationIdentifier Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Eq ChangeAnnotationIdentifier Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Hashable ChangeAnnotationIdentifier Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSON ChangeAnnotationIdentifier Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSONKey ChangeAnnotationIdentifier Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Methods

fromJSONKey :: FromJSONKeyFunction ChangeAnnotationIdentifier

fromJSONKeyList :: FromJSONKeyFunction [ChangeAnnotationIdentifier]

ToJSON ChangeAnnotationIdentifier Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

ToJSONKey ChangeAnnotationIdentifier Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Methods

toJSONKey :: ToJSONKeyFunction ChangeAnnotationIdentifier

toJSONKeyList :: ToJSONKeyFunction [ChangeAnnotationIdentifier]

HasAnnotationId AnnotatedTextEdit ChangeAnnotationIdentifier Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasAnnotationId CreateFile (Maybe ChangeAnnotationIdentifier) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasAnnotationId DeleteFile (Maybe ChangeAnnotationIdentifier) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasAnnotationId RenameFile (Maybe ChangeAnnotationIdentifier) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasChangeAnnotations WorkspaceEdit (Maybe ChangeAnnotationMap) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data CreateFileOptions Source #

Options to create a file.

Constructors

CreateFileOptions 

Fields

Instances

Instances details
Read CreateFileOptions Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Show CreateFileOptions Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Eq CreateFileOptions Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSON CreateFileOptions Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

ToJSON CreateFileOptions Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

HasIgnoreIfExists CreateFileOptions (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasOptions CreateFile (Maybe CreateFileOptions) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasOverwrite CreateFileOptions (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data RenameFileOptions Source #

Constructors

RenameFileOptions 

Fields

Instances

Instances details
Read RenameFileOptions Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Show RenameFileOptions Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Eq RenameFileOptions Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSON RenameFileOptions Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

ToJSON RenameFileOptions Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

HasIgnoreIfExists RenameFileOptions (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasOptions RenameFile (Maybe RenameFileOptions) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasOverwrite RenameFileOptions (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data DeleteFileOptions Source #

Constructors

DeleteFileOptions 

Fields

Instances

Instances details
Read DeleteFileOptions Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Show DeleteFileOptions Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Eq DeleteFileOptions Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSON DeleteFileOptions Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

ToJSON DeleteFileOptions Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

HasIgnoreIfNotExists DeleteFileOptions (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasOptions DeleteFile (Maybe DeleteFileOptions) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasRecursive DeleteFileOptions (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

type DocumentChange = TextDocumentEdit |? (CreateFile |? (RenameFile |? DeleteFile)) Source #

`TextDocumentEdit |? CreateFile |? RenameFile |? DeleteFile` is a bit mouthful, here's the synonym

data WorkspaceEditClientCapabilities Source #

Constructors

WorkspaceEditClientCapabilities 

Fields

Instances

Instances details
Read WorkspaceEditClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Show WorkspaceEditClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Eq WorkspaceEditClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSON WorkspaceEditClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

ToJSON WorkspaceEditClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

HasChangeAnnotationSupport WorkspaceEditClientCapabilities (Maybe WorkspaceEditChangeAnnotationClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasDocumentChanges WorkspaceEditClientCapabilities (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasFailureHandling WorkspaceEditClientCapabilities (Maybe FailureHandlingKind) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasNormalizesLineEndings WorkspaceEditClientCapabilities (Maybe Bool) Source # 
Instance details

Defined in Language.LSP.Types.Lens

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

Defined in Language.LSP.Types.Lens

HasWorkspaceEdit WorkspaceClientCapabilities (Maybe WorkspaceEditClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data ResourceOperationKind Source #

Constructors

ResourceOperationCreate

Supports creating new files and folders.

ResourceOperationRename

Supports renaming existing files and folders.

ResourceOperationDelete

Supports deleting existing files and folders.

Instances

Instances details
Read ResourceOperationKind Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Show ResourceOperationKind Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Eq ResourceOperationKind Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSON ResourceOperationKind Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

ToJSON ResourceOperationKind Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

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

Defined in Language.LSP.Types.Lens

data FailureHandlingKind Source #

Constructors

FailureHandlingAbort

Applying the workspace change is simply aborted if one of the changes provided fails. All operations executed before the failing operation stay executed.

FailureHandlingTransactional

All operations are executed transactional. That means they either all succeed or no changes at all are applied to the workspace.

FailureHandlingTextOnlyTransactional

If the workspace edit contains only textual file changes they are executed transactional. If resource changes (create, rename or delete file) are part of the change the failure handling strategy is abort.

FailureHandlingUndo

The client tries to undo the operations already executed. But there is no guarantee that this is succeeding.

Instances

Instances details
Read FailureHandlingKind Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Show FailureHandlingKind Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Eq FailureHandlingKind Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSON FailureHandlingKind Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

ToJSON FailureHandlingKind Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

HasFailureHandling WorkspaceEditClientCapabilities (Maybe FailureHandlingKind) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data WorkspaceEditChangeAnnotationClientCapabilities Source #

Constructors

WorkspaceEditChangeAnnotationClientCapabilities 

Fields

  • groupsOnLabel :: Maybe Bool

    Whether the client groups edits with equal labels into tree nodes, for instance all edits labelled with "Changes in Strings" would be a tree node.

Instances

Instances details
Read WorkspaceEditChangeAnnotationClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Show WorkspaceEditChangeAnnotationClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Eq WorkspaceEditChangeAnnotationClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSON WorkspaceEditChangeAnnotationClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

ToJSON WorkspaceEditChangeAnnotationClientCapabilities Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

HasChangeAnnotationSupport WorkspaceEditClientCapabilities (Maybe WorkspaceEditChangeAnnotationClientCapabilities) Source # 
Instance details

Defined in Language.LSP.Types.Lens

data ApplyWorkspaceEditResponseBody Source #

Constructors

ApplyWorkspaceEditResponseBody 

Fields

  • _applied :: Bool

    Indicates whether the edit was applied or not.

  • _failureReason :: Maybe Text

    An optional textual description for why the edit was not applied. This may be used may be used by the server for diagnostic logging or to provide a suitable error for a request that triggered the edit.

  • _failedChange :: Maybe UInt

    Depending on the client's failure handling strategy failedChange might contain the index of the change that failed. This property is only available if the client signals a failureHandling strategy in its client capabilities.

Instances

Instances details
Read ApplyWorkspaceEditResponseBody Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Show ApplyWorkspaceEditResponseBody Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

Eq ApplyWorkspaceEditResponseBody Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

FromJSON ApplyWorkspaceEditResponseBody Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

ToJSON ApplyWorkspaceEditResponseBody Source # 
Instance details

Defined in Language.LSP.Types.WorkspaceEdit

HasApplied ApplyWorkspaceEditResponseBody Bool Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasFailedChange ApplyWorkspaceEditResponseBody (Maybe UInt) Source # 
Instance details

Defined in Language.LSP.Types.Lens

HasFailureReason ApplyWorkspaceEditResponseBody (Maybe Text) Source # 
Instance details

Defined in Language.LSP.Types.Lens

applyTextEdit :: TextEdit -> Text -> Text Source #

Applies a TextEdit to some Text. >>> applyTextEdit (TextEdit (Range (Position 0 1) (Position 0 2)) "i") "foo" "fio"

editTextEdit :: TextEdit -> TextEdit -> TextEdit Source #

editTextEdit outer inner applies inner to the text inside outer.

fullCaps :: ClientCapabilities Source #

Capabilities for full conformance to the current (v3.15) LSP specification.

data LSPVersion Source #

A specific version of the LSP specification.

Constructors

LSPVersion Int Int

Construct a major.minor version

capsForVersion :: LSPVersion -> ClientCapabilities Source #

Capabilities for full conformance to the LSP specification up until a version. Some important milestones:

  • 3.12 textDocument/prepareRename request
  • 3.11 CodeActionOptions provided by the server
  • 3.10 hierarchical document symbols, folding ranges
  • 3.9 completion item preselect
  • 3.8 codeAction literals
  • 3.7 related information in diagnostics
  • 3.6 workspace folders, colors, goto type/implementation
  • 3.4 extended completion item and symbol item kinds
  • 3.0 dynamic registration