blob: dfac99d378f5d0a93d4fd55a0cdc7ff79ab31c57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#pragma once
#include "LibLsp/JsonRpc/RequestInMessage.h"
#include "LibLsp/JsonRpc/lsResponseMessage.h"
#include "LibLsp/lsp/lsAny.h"
#include "LibLsp/lsp/symbol.h"
#include "LibLsp/lsp/lsTextDocumentPositionParams.h"
#include "LibLsp/lsp/lsRange.h"
struct LinkedEditingRangeParams
{
lsTextDocumentIdentifier textDocument;
lsPosition position;
MAKE_SWAP_METHOD(LinkedEditingRangeParams,
textDocument,
position)
};
MAKE_REFLECT_STRUCT(LinkedEditingRangeParams,
textDocument,
position)
struct LinkedEditingRanges
{
/**
* A list of ranges that can be renamed together. The ranges must have
* identical length and contain identical text content. The ranges cannot overlap.
*/
std::vector<lsRange> ranges;
/**
* An optional word pattern (regular expression) that describes valid contents for
* the given ranges. If no pattern is provided, the client configuration's word
* pattern will be used.
*/
optional<std::string> wordPattern;
MAKE_SWAP_METHOD(LinkedEditingRanges,
ranges,
wordPattern)
};
MAKE_REFLECT_STRUCT(LinkedEditingRanges,
ranges,
wordPattern)
DEFINE_REQUEST_RESPONSE_TYPE(td_linkedEditingRange, LinkedEditingRangeParams,
optional<std::vector<LinkedEditingRanges >>,"textDocument/linkedEditingRange")
|