clang-tools  14.0.0git
Public Attributes | List of all members
clang::clangd::CodeActionContext Struct Reference

#include <Protocol.h>

Collaboration diagram for clang::clangd::CodeActionContext:
Collaboration graph
[legend]

Public Attributes

std::vector< Diagnosticdiagnostics
 An array of diagnostics known on the client side overlapping the range provided to the textDocument/codeAction request. More...
 
std::vector< std::string > only
 Requested kind of actions to return. More...
 

Detailed Description

Definition at line 897 of file Protocol.h.

Member Data Documentation

◆ diagnostics

std::vector<Diagnostic> clang::clangd::CodeActionContext::diagnostics

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.

Definition at line 904 of file Protocol.h.

Referenced by clang::clangd::fromJSON().

◆ only

std::vector<std::string> clang::clangd::CodeActionContext::only

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.

Definition at line 910 of file Protocol.h.

Referenced by clang::clangd::fromJSON().


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