clang-tools  9.0.0
Public Attributes | List of all members
clang::clangd::ClientCapabilities Struct Reference

#include <Protocol.h>

Collaboration diagram for clang::clangd::ClientCapabilities:
[legend]

Public Attributes

llvm::Optional< SymbolKindBitsetWorkspaceSymbolKinds
 The supported set of SymbolKinds for workspace/symbol. More...
 
bool DiagnosticFixes = false
 Whether the client accepts diagnostics with codeActions attached inline. More...
 
bool DiagnosticRelatedInformation = false
 Whether the client accepts diagnostics with related locations. More...
 
bool DiagnosticCategory = false
 Whether the client accepts diagnostics with category attached to it using the "category" extension. More...
 
bool CompletionSnippets = false
 Client supports snippets as insert text. More...
 
bool CompletionFixes = false
 Client supports completions with additionalTextEdit near the cursor. More...
 
bool HierarchicalDocumentSymbol = false
 Client supports hierarchical document symbols. More...
 
bool HasSignatureHelp = false
 Client supports signature help. More...
 
bool OffsetsInSignatureHelp = false
 Client supports processing label offsets instead of a simple label string. More...
 
llvm::Optional< CompletionItemKindBitsetCompletionItemKinds
 The supported set of CompletionItemKinds for textDocument/completion. More...
 
bool CodeActionStructure = false
 Client supports CodeAction return value for textDocument/codeAction. More...
 
bool SemanticHighlighting = false
 Client supports semantic highlighting. More...
 
llvm::Optional< std::vector< OffsetEncoding > > offsetEncoding
 Supported encodings for LSP character offsets. (clangd extension). More...
 
MarkupKind HoverContentFormat = MarkupKind::PlainText
 The content format that should be used for Hover requests. More...
 

Detailed Description

Definition at line 368 of file Protocol.h.

Member Data Documentation

◆ CodeActionStructure

bool clang::clangd::ClientCapabilities::CodeActionStructure = false

Client supports CodeAction return value for textDocument/codeAction.

textDocument.codeAction.codeActionLiteralSupport.

Definition at line 413 of file Protocol.h.

◆ CompletionFixes

bool clang::clangd::ClientCapabilities::CompletionFixes = false

Client supports completions with additionalTextEdit near the cursor.

This is a clangd extension. (LSP says this is for unrelated text only). textDocument.completion.editsNearCursor

Definition at line 393 of file Protocol.h.

◆ CompletionItemKinds

llvm::Optional<CompletionItemKindBitset> clang::clangd::ClientCapabilities::CompletionItemKinds

The supported set of CompletionItemKinds for textDocument/completion.

textDocument.completion.completionItemKind.valueSet

Definition at line 409 of file Protocol.h.

◆ CompletionSnippets

bool clang::clangd::ClientCapabilities::CompletionSnippets = false

Client supports snippets as insert text.

textDocument.completion.completionItem.snippetSupport

Definition at line 388 of file Protocol.h.

◆ DiagnosticCategory

bool clang::clangd::ClientCapabilities::DiagnosticCategory = false

Whether the client accepts diagnostics with category attached to it using the "category" extension.

textDocument.publishDiagnostics.categorySupport

Definition at line 384 of file Protocol.h.

◆ DiagnosticFixes

bool clang::clangd::ClientCapabilities::DiagnosticFixes = false

Whether the client accepts diagnostics with codeActions attached inline.

textDocument.publishDiagnostics.codeActionsInline.

Definition at line 375 of file Protocol.h.

◆ DiagnosticRelatedInformation

bool clang::clangd::ClientCapabilities::DiagnosticRelatedInformation = false

Whether the client accepts diagnostics with related locations.

textDocument.publishDiagnostics.relatedInformation.

Definition at line 379 of file Protocol.h.

◆ HasSignatureHelp

bool clang::clangd::ClientCapabilities::HasSignatureHelp = false

Client supports signature help.

textDocument.signatureHelp

Definition at line 401 of file Protocol.h.

◆ HierarchicalDocumentSymbol

bool clang::clangd::ClientCapabilities::HierarchicalDocumentSymbol = false

Client supports hierarchical document symbols.

textDocument.documentSymbol.hierarchicalDocumentSymbolSupport

Definition at line 397 of file Protocol.h.

◆ HoverContentFormat

MarkupKind clang::clangd::ClientCapabilities::HoverContentFormat = MarkupKind::PlainText

The content format that should be used for Hover requests.

textDocument.hover.contentEncoding

Definition at line 424 of file Protocol.h.

◆ offsetEncoding

llvm::Optional<std::vector<OffsetEncoding> > clang::clangd::ClientCapabilities::offsetEncoding

Supported encodings for LSP character offsets. (clangd extension).

Definition at line 420 of file Protocol.h.

◆ OffsetsInSignatureHelp

bool clang::clangd::ClientCapabilities::OffsetsInSignatureHelp = false

Client supports processing label offsets instead of a simple label string.

textDocument.signatureHelp.signatureInformation.parameterInformation.labelOffsetSupport

Definition at line 405 of file Protocol.h.

◆ SemanticHighlighting

bool clang::clangd::ClientCapabilities::SemanticHighlighting = false

Client supports semantic highlighting.

textDocument.semanticHighlightingCapabilities.semanticHighlighting

Definition at line 417 of file Protocol.h.

◆ WorkspaceSymbolKinds

llvm::Optional<SymbolKindBitset> clang::clangd::ClientCapabilities::WorkspaceSymbolKinds

The supported set of SymbolKinds for workspace/symbol.

workspace.symbol.symbolKind.valueSet

Definition at line 371 of file Protocol.h.


The documentation for this struct was generated from the following file: