|
6 | 6 | }, |
7 | 7 | { |
8 | 8 | "start": { |
9 | | - "cmd": [ |
10 | | - "${ALS}" |
11 | | - ] |
| 9 | + "cmd": ["${ALS}"] |
12 | 10 | } |
13 | 11 | }, |
14 | 12 | { |
|
27 | 25 | "textDocument": { |
28 | 26 | "completion": { |
29 | 27 | "completionItem": { |
30 | | - "documentationFormat": [ |
31 | | - "markdown", |
32 | | - "plaintext" |
33 | | - ], |
| 28 | + "documentationFormat": ["markdown", "plaintext"], |
34 | 29 | "commitCharactersSupport": true, |
35 | 30 | "preselectSupport": true, |
36 | 31 | "deprecatedSupport": true, |
37 | 32 | "snippetSupport": true |
38 | 33 | }, |
39 | 34 | "completionItemKind": { |
40 | 35 | "valueSet": [ |
41 | | - 1, |
42 | | - 2, |
43 | | - 3, |
44 | | - 4, |
45 | | - 5, |
46 | | - 6, |
47 | | - 7, |
48 | | - 8, |
49 | | - 9, |
50 | | - 10, |
51 | | - 11, |
52 | | - 12, |
53 | | - 13, |
54 | | - 14, |
55 | | - 15, |
56 | | - 16, |
57 | | - 17, |
58 | | - 18, |
59 | | - 19, |
60 | | - 20, |
61 | | - 21, |
62 | | - 22, |
63 | | - 23, |
64 | | - 24, |
65 | | - 25 |
| 36 | + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, |
| 37 | + 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 |
66 | 38 | ] |
67 | 39 | }, |
68 | 40 | "contextSupport": true, |
|
74 | 46 | }, |
75 | 47 | "signatureHelp": { |
76 | 48 | "signatureInformation": { |
77 | | - "documentationFormat": [ |
78 | | - "markdown", |
79 | | - "plaintext" |
80 | | - ], |
| 49 | + "documentationFormat": ["markdown", "plaintext"], |
81 | 50 | "parameterInformation": { |
82 | 51 | "labelOffsetSupport": true |
83 | 52 | } |
84 | 53 | }, |
85 | 54 | "dynamicRegistration": true |
86 | 55 | }, |
87 | 56 | "hover": { |
88 | | - "contentFormat": [ |
89 | | - "markdown", |
90 | | - "plaintext" |
91 | | - ], |
| 57 | + "contentFormat": ["markdown", "plaintext"], |
92 | 58 | "dynamicRegistration": true |
93 | 59 | }, |
94 | 60 | "declaration": { |
|
129 | 95 | "documentSymbol": { |
130 | 96 | "symbolKind": { |
131 | 97 | "valueSet": [ |
132 | | - 1, |
133 | | - 2, |
134 | | - 3, |
135 | | - 4, |
136 | | - 5, |
137 | | - 6, |
138 | | - 7, |
139 | | - 8, |
140 | | - 9, |
141 | | - 10, |
142 | | - 11, |
143 | | - 12, |
144 | | - 13, |
145 | | - 14, |
146 | | - 15, |
147 | | - 16, |
148 | | - 17, |
149 | | - 18, |
150 | | - 19, |
151 | | - 20, |
152 | | - 21, |
153 | | - 22, |
154 | | - 23, |
155 | | - 24, |
156 | | - 25, |
157 | | - 26 |
| 98 | + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, |
| 99 | + 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 |
158 | 100 | ] |
159 | 101 | }, |
160 | 102 | "hierarchicalDocumentSymbolSupport": true, |
|
213 | 155 | "symbol": { |
214 | 156 | "symbolKind": { |
215 | 157 | "valueSet": [ |
216 | | - 1, |
217 | | - 2, |
218 | | - 3, |
219 | | - 4, |
220 | | - 5, |
221 | | - 6, |
222 | | - 7, |
223 | | - 8, |
224 | | - 9, |
225 | | - 10, |
226 | | - 11, |
227 | | - 12, |
228 | | - 13, |
229 | | - 14, |
230 | | - 15, |
231 | | - 16, |
232 | | - 17, |
233 | | - 18, |
234 | | - 19, |
235 | | - 20, |
236 | | - 21, |
237 | | - 22, |
238 | | - 23, |
239 | | - 24, |
240 | | - 25, |
241 | | - 26 |
| 158 | + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, |
| 159 | + 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 |
242 | 160 | ] |
243 | 161 | }, |
244 | 162 | "dynamicRegistration": true |
245 | 163 | }, |
246 | 164 | "workspaceEdit": { |
247 | 165 | "failureHandling": "textOnlyTransactional", |
248 | | - "resourceOperations": [ |
249 | | - "create", |
250 | | - "rename", |
251 | | - "delete" |
252 | | - ], |
| 166 | + "resourceOperations": ["create", "rename", "delete"], |
253 | 167 | "documentChanges": true |
254 | 168 | } |
255 | 169 | } |
|
282 | 196 | "textDocumentSync": 2, |
283 | 197 | "declarationProvider": true, |
284 | 198 | "completionProvider": { |
285 | | - "triggerCharacters": [ |
286 | | - ".", |
287 | | - ",", |
288 | | - "'", |
289 | | - "(" |
290 | | - ], |
| 199 | + "triggerCharacters": [".", ",", "'", "("], |
291 | 200 | "resolveProvider": true |
292 | 201 | }, |
293 | 202 | "documentSymbolProvider": true |
|
330 | 239 | "wait": [] |
331 | 240 | } |
332 | 241 | }, |
333 | | - {"comment": "--------------------------- open a file -------------------------"}, |
| 242 | + { |
| 243 | + "comment": "--------------------------- open a file -------------------------" |
| 244 | + }, |
334 | 245 | { |
335 | 246 | "send": { |
336 | 247 | "request": { |
|
348 | 259 | "wait": [] |
349 | 260 | } |
350 | 261 | }, |
351 | | - {"comment": "--------------------------- query a tooltip to verify -------------------------"}, |
| 262 | + { |
| 263 | + "comment": "--------------------------- query a tooltip to verify -------------------------" |
| 264 | + }, |
352 | 265 | { |
353 | 266 | "send": { |
354 | 267 | "request": { |
|
385 | 298 | ] |
386 | 299 | } |
387 | 300 | }, |
388 | | - {"comment": "--------------------------- insert a space in the middle of a function name -------------------------"}, |
| 301 | + { |
| 302 | + "comment": "--------------------------- insert a space in the middle of a function name -------------------------" |
| 303 | + }, |
389 | 304 | { |
390 | 305 | "send": { |
391 | 306 | "request": { |
|
414 | 329 | "jsonrpc": "2.0", |
415 | 330 | "method": "textDocument/didChange" |
416 | 331 | }, |
417 | | - "wait": [ |
418 | | - { |
419 | | - "params": { |
420 | | - "uri": "$URI{main.adb}", |
421 | | - "diagnostics": [ |
422 | | - { |
423 | | - "range": { |
424 | | - "start": { |
425 | | - "line": 2, |
426 | | - "character": 16 |
427 | | - }, |
428 | | - "end": { |
429 | | - "line": 2, |
430 | | - "character": 24 |
431 | | - } |
432 | | - }, |
433 | | - "source": "libadalang", |
434 | | - "message": "Missing ';'" |
435 | | - }, |
436 | | - { |
437 | | - "range": { |
438 | | - "start": { |
439 | | - "line": 0, |
440 | | - "character": 0 |
441 | | - }, |
442 | | - "end": { |
443 | | - "line": 0, |
444 | | - "character": 0 |
445 | | - } |
446 | | - }, |
447 | | - "severity": 4, |
448 | | - "source": "project", |
449 | | - "message": "Unique project in root directory was found and loaded, but it wasn't explicitly configured." |
450 | | - } |
451 | | - ] |
452 | | - }, |
453 | | - "method": "textDocument/publishDiagnostics" |
454 | | - } |
455 | | - ] |
| 332 | + "wait": [] |
456 | 333 | } |
457 | 334 | }, |
458 | | - {"comment": "--------------------------- hover should be empty -------------------------"}, |
| 335 | + { |
| 336 | + "comment": "--------------------------- hover should be empty -------------------------" |
| 337 | + }, |
459 | 338 | { |
460 | 339 | "send": { |
461 | 340 | "request": { |
|
480 | 359 | ] |
481 | 360 | } |
482 | 361 | }, |
483 | | - {"comment": "--------------------------- undo the change -------------------------"}, |
| 362 | + { |
| 363 | + "comment": "--------------------------- undo the change -------------------------" |
| 364 | + }, |
484 | 365 | { |
485 | 366 | "send": { |
486 | 367 | "request": { |
|
509 | 390 | "jsonrpc": "2.0", |
510 | 391 | "method": "textDocument/didChange" |
511 | 392 | }, |
512 | | - "wait": [ |
513 | | - { |
514 | | - "params": { |
515 | | - "uri": "$URI{main.adb}", |
516 | | - "diagnostics": [ |
517 | | - { |
518 | | - "range": { |
519 | | - "start": { |
520 | | - "line": 0, |
521 | | - "character": 0 |
522 | | - }, |
523 | | - "end": { |
524 | | - "line": 0, |
525 | | - "character": 0 |
526 | | - } |
527 | | - }, |
528 | | - "severity": 4, |
529 | | - "source": "project", |
530 | | - "message": "Unique project in root directory was found and loaded, but it wasn't explicitly configured." |
531 | | - } |
532 | | - ] |
533 | | - }, |
534 | | - "method": "textDocument/publishDiagnostics" |
535 | | - } |
536 | | - ] |
| 393 | + "wait": [] |
537 | 394 | } |
538 | 395 | }, |
539 | | - {"comment": "--------------------------- verify that the hover is good again -------------------------"}, |
| 396 | + { |
| 397 | + "comment": "--------------------------- verify that the hover is good again -------------------------" |
| 398 | + }, |
540 | 399 | { |
541 | 400 | "send": { |
542 | 401 | "request": { |
|
0 commit comments