-
Notifications
You must be signed in to change notification settings - Fork 183
/
Copy pathextract_method_script.exp.json
60 lines (60 loc) · 1.85 KB
/
extract_method_script.exp.json
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
52
53
54
55
56
57
58
59
60
{
"params": {
"kind": "refactor.extract",
"title": "Refactor: Extract Method",
"data": {
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 2,
"character": 6
}
},
"uri": "file:///fake"
}
},
"result": {
"title": "Refactor: Extract Method",
"edit": {
"documentChanges": [
{
"textDocument": {
"uri": "file:///fake",
"version": null
},
"edits": [
{
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 0
}
},
"newText": "def new_method\n a = 5 + 2\n a * 10\n \nend\n\n"
},
{
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 2,
"character": 6
}
},
"newText": "new_method"
}
]
}
]
}
}
}