nixd
|
#include <Protocol.h>
Public Attributes | |
std::optional< std::map< std::string, std::vector< TextEdit > > > | changes |
Holds changes to existing resources. | |
std::optional< std::vector< TextDocumentEdit > > | documentChanges |
std::map< std::string, ChangeAnnotation > | changeAnnotations |
The edit should either provide changes or documentChanges. If the client can handle versioned document edits and if documentChanges are present, the latter are preferred over changes.
Definition at line 994 of file lspserver/include/lspserver/Protocol.h.
std::map<std::string, ChangeAnnotation> lspserver::WorkspaceEdit::changeAnnotations |
A map of change annotations that can be referenced in AnnotatedTextEdit.
Definition at line 1006 of file lspserver/include/lspserver/Protocol.h.
Referenced by lspserver::fromJSON(), and lspserver::toJSON().
std::optional<std::map<std::string, std::vector<TextEdit> > > lspserver::WorkspaceEdit::changes |
Holds changes to existing resources.
Definition at line 996 of file lspserver/include/lspserver/Protocol.h.
Referenced by lspserver::fromJSON(), and lspserver::toJSON().
std::optional<std::vector<TextDocumentEdit> > lspserver::WorkspaceEdit::documentChanges |
Versioned document edits.
If a client neither supports documentChanges
nor workspace.workspaceEdit.resourceOperations
then only plain TextEdit
s using the changes
property are supported.
Definition at line 1002 of file lspserver/include/lspserver/Protocol.h.
Referenced by lspserver::fromJSON(), and lspserver::toJSON().