| 1 |
#pragma once |
| 2 |
|
| 3 |
#include "LibLsp/JsonRpc/serializer.h" |
| 4 |
#include <vector> |
| 5 |
#include "LibLsp/JsonRpc/message.h" |
| 6 |
#include "lsVersionedTextDocumentIdentifier.h" |
| 7 |
#include "lsTextEdit.h" |
| 8 |
|
| 9 |
struct lsTextDocumentEdit |
| 10 |
{ |
| 11 |
// The text document to change. |
| 12 |
lsVersionedTextDocumentIdentifier textDocument; |
| 13 |
|
| 14 |
/** |
| 15 |
* The edits to be applied. |
| 16 |
* |
| 17 |
* @since 3.16.0 - support for AnnotatedTextEdit. This is guarded by the |
| 18 |
* client capability `workspace.workspaceEdit.changeAnnotationSupport` |
| 19 |
*/ |
| 20 |
// The edits to be applied. |
| 21 |
std::vector<lsAnnotatedTextEdit> edits; |
| 22 |
MAKE_SWAP_METHOD(lsTextDocumentEdit, textDocument, edits); |
| 23 |
}; |
| 24 |
MAKE_REFLECT_STRUCT(lsTextDocumentEdit, textDocument, edits); |