Skip to content

Commit aaea42d

Browse files
Format files
(no-issue-check)
1 parent 9b70320 commit aaea42d

File tree

2 files changed

+60
-84
lines changed
  • testsuite/ada_lsp

2 files changed

+60
-84
lines changed

testsuite/ada_lsp/refactoring_replace_type/Q817-007/test.json

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
},
77
{
88
"start": {
9-
"cmd": [
10-
"${ALS}"
11-
]
9+
"cmd": ["${ALS}"]
1210
}
1311
},
1412
{
@@ -27,11 +25,7 @@
2725
"applyEdit": true,
2826
"workspaceEdit": {
2927
"documentChanges": true,
30-
"resourceOperations": [
31-
"create",
32-
"rename",
33-
"delete"
34-
]
28+
"resourceOperations": ["create", "rename", "delete"]
3529
},
3630
"executeCommand": {
3731
"dynamicRegistration": true
@@ -53,9 +47,7 @@
5347
}
5448
},
5549
"experimental": {
56-
"advanced_refactorings": [
57-
"replace_type"
58-
]
50+
"advanced_refactorings": ["replace_type"]
5951
}
6052
}
6153
}
@@ -67,16 +59,10 @@
6759
"result": {
6860
"capabilities": {
6961
"codeActionProvider": {
70-
"codeActionKinds": [
71-
"<HAS>",
72-
"refactor.rewrite"
73-
]
62+
"codeActionKinds": ["<HAS>", "refactor.rewrite"]
7463
},
7564
"executeCommandProvider": {
76-
"commands": [
77-
"<HAS>",
78-
"als-refactor-replace-type"
79-
]
65+
"commands": ["<HAS>", "als-refactor-replace-type"]
8066
}
8167
}
8268
}
@@ -107,15 +93,15 @@
10793
}
10894
},
10995
"wait": [
110-
{
111-
"jsonrpc": "2.0",
112-
"id": 1,
113-
"method": "window/workDoneProgress/create",
114-
"params": {
115-
"token": "<ANY>"
116-
}
117-
}
118-
]
96+
{
97+
"jsonrpc": "2.0",
98+
"id": 1,
99+
"method": "window/workDoneProgress/create",
100+
"params": {
101+
"token": "<ANY>"
102+
}
103+
}
104+
]
119105
}
120106
},
121107
{

testsuite/ada_lsp/refactoring_sort_dependencies/SA22-035/test.json

Lines changed: 46 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
},
77
{
88
"start": {
9-
"cmd": [
10-
"${ALS}"
11-
]
9+
"cmd": ["${ALS}"]
1210
}
1311
},
1412
{
@@ -27,11 +25,7 @@
2725
"applyEdit": true,
2826
"workspaceEdit": {
2927
"documentChanges": true,
30-
"resourceOperations": [
31-
"create",
32-
"rename",
33-
"delete"
34-
]
28+
"resourceOperations": ["create", "rename", "delete"]
3529
},
3630
"executeCommand": {
3731
"dynamicRegistration": true
@@ -54,9 +48,7 @@
5448
}
5549
},
5650
"experimental": {
57-
"advanced_refactorings": [
58-
"replace_type"
59-
]
51+
"advanced_refactorings": ["replace_type"]
6052
}
6153
}
6254
}
@@ -68,16 +60,10 @@
6860
"result": {
6961
"capabilities": {
7062
"codeActionProvider": {
71-
"codeActionKinds": [
72-
"<HAS>",
73-
"source.organizeImports"
74-
]
63+
"codeActionKinds": ["<HAS>", "source.organizeImports"]
7564
},
7665
"executeCommandProvider": {
77-
"commands": [
78-
"<HAS>",
79-
"als-refactor-sort_dependencies"
80-
]
66+
"commands": ["<HAS>", "als-refactor-sort_dependencies"]
8167
}
8268
}
8369
}
@@ -108,14 +94,14 @@
10894
}
10995
},
11096
"wait": [
111-
{
112-
"jsonrpc": "2.0",
113-
"id": 1,
114-
"method": "window/workDoneProgress/create",
115-
"params": {
116-
"token": "<ANY>"
117-
}
118-
}
97+
{
98+
"jsonrpc": "2.0",
99+
"id": 1,
100+
"method": "window/workDoneProgress/create",
101+
"params": {
102+
"token": "<ANY>"
103+
}
104+
}
119105
]
120106
}
121107
},
@@ -182,22 +168,24 @@
182168
"command": {
183169
"title": "",
184170
"command": "als-refactor-sort_dependencies",
185-
"arguments": [{
186-
"context": "$URI{default.gpr}",
187-
"where": {
188-
"uri": "$URI{main_package.ads}",
189-
"range": {
190-
"start": {
191-
"line": 3,
192-
"character": 15
193-
},
194-
"end": {
195-
"line": 3,
196-
"character": 15
197-
}
198-
}
199-
}
200-
}]
171+
"arguments": [
172+
{
173+
"context": "$URI{default.gpr}",
174+
"where": {
175+
"uri": "$URI{main_package.ads}",
176+
"range": {
177+
"start": {
178+
"line": 3,
179+
"character": 15
180+
},
181+
"end": {
182+
"line": 3,
183+
"character": 15
184+
}
185+
}
186+
}
187+
}
188+
]
201189
}
202190
}
203191
]
@@ -213,22 +201,24 @@
213201
"method": "workspace/executeCommand",
214202
"params": {
215203
"command": "als-refactor-sort_dependencies",
216-
"arguments": [{
217-
"context": "$URI{default.gpr}",
218-
"where": {
219-
"uri": "$URI{main_package.ads}",
220-
"range": {
221-
"start": {
222-
"line": 3,
223-
"character": 15
224-
},
225-
"end": {
226-
"line": 3,
227-
"character": 15
204+
"arguments": [
205+
{
206+
"context": "$URI{default.gpr}",
207+
"where": {
208+
"uri": "$URI{main_package.ads}",
209+
"range": {
210+
"start": {
211+
"line": 3,
212+
"character": 15
213+
},
214+
"end": {
215+
"line": 3,
216+
"character": 15
217+
}
228218
}
229219
}
230220
}
231-
}]
221+
]
232222
}
233223
},
234224
"wait": [

0 commit comments

Comments
 (0)