|
2 | 2 | { |
3 | 3 | "comment": [ |
4 | 4 | "Test the context after a DidRenameFiles notification. ", |
5 | | - "The references requests should work before and after." |
| 5 | + "The references requests should work before and after.", |
| 6 | + "If the unit name does not match teh source name (which is ", |
| 7 | + "usually the case after renaming sources outside of the ALS), ", |
| 8 | + "references are expected to be unaccurate: these units are now ", |
| 9 | + "ignored by GPR2. The user should make sure unit and source names ", |
| 10 | + "always match, and reload the project once it's the case." |
6 | 11 | ] |
7 | 12 | }, |
8 | 13 | { |
9 | 14 | "start": { |
10 | | - "cmd": [ |
11 | | - "${ALS}" |
12 | | - ] |
| 15 | + "cmd": ["${ALS}"] |
13 | 16 | } |
14 | 17 | }, |
15 | 18 | { |
|
26 | 29 | "applyEdit": true, |
27 | 30 | "workspaceEdit": { |
28 | 31 | "documentChanges": true, |
29 | | - "resourceOperations": [ |
30 | | - "rename" |
31 | | - ] |
| 32 | + "resourceOperations": ["rename"] |
32 | 33 | }, |
33 | 34 | "fileOperations": { |
34 | 35 | "didRename": true |
|
40 | 41 | "dynamicRegistration": true, |
41 | 42 | "completionItem": { |
42 | 43 | "snippetSupport": false, |
43 | | - "documentationFormat": [ |
44 | | - "plaintext", |
45 | | - "markdown" |
46 | | - ], |
| 44 | + "documentationFormat": ["plaintext", "markdown"], |
47 | 45 | "resolveSupport": { |
48 | | - "properties": [ |
49 | | - "detail", |
50 | | - "documentation" |
51 | | - ] |
| 46 | + "properties": ["detail", "documentation"] |
52 | 47 | } |
53 | 48 | } |
54 | 49 | }, |
|
75 | 70 | } |
76 | 71 | }, |
77 | 72 | "experimental": { |
78 | | - "advanced_refactorings": [ |
79 | | - "add_parameter" |
80 | | - ] |
| 73 | + "advanced_refactorings": ["add_parameter"] |
81 | 74 | } |
82 | 75 | } |
83 | 76 | } |
|
89 | 82 | "capabilities": { |
90 | 83 | "textDocumentSync": 2, |
91 | 84 | "completionProvider": { |
92 | | - "triggerCharacters": [ |
93 | | - ".", |
94 | | - ",", |
95 | | - "'", |
96 | | - "(" |
97 | | - ], |
| 85 | + "triggerCharacters": [".", ",", "'", "("], |
98 | 86 | "resolveProvider": true |
99 | 87 | }, |
100 | 88 | "renameProvider": { |
|
207 | 195 | "character": 14 |
208 | 196 | } |
209 | 197 | }, |
210 | | - "alsKind": [ |
211 | | - "reference" |
212 | | - ] |
| 198 | + "alsKind": ["reference"] |
213 | 199 | }, |
214 | 200 | { |
215 | 201 | "uri": "$URI{main.adb}", |
|
223 | 209 | "character": 13 |
224 | 210 | } |
225 | 211 | }, |
226 | | - "alsKind": [ |
227 | | - "call" |
228 | | - ] |
| 212 | + "alsKind": ["call"] |
229 | 213 | } |
230 | 214 | ] |
231 | 215 | } |
|
641 | 625 | } |
642 | 626 | }, |
643 | 627 | { |
644 | | - "shell": [ |
645 | | - "mv", |
646 | | - "${DIR}${DIR_SEP}foo-bar1.ads", |
647 | | - "${DIR}${DIR_SEP}foo-bar2.ads" |
648 | | - ] |
| 628 | + "shell": [ |
| 629 | + "mv", |
| 630 | + "${DIR}${DIR_SEP}foo-bar1.ads", |
| 631 | + "${DIR}${DIR_SEP}foo-bar2.ads" |
| 632 | + ] |
649 | 633 | }, |
650 | 634 | { |
651 | 635 | "send": { |
|
699 | 683 | "character": 14 |
700 | 684 | } |
701 | 685 | }, |
702 | | - "alsKind": [ |
703 | | - "reference" |
704 | | - ] |
705 | | - }, |
706 | | - { |
707 | | - "uri": "$URI{main.adb}", |
708 | | - "range": { |
709 | | - "start": { |
710 | | - "line": 4, |
711 | | - "character": 12 |
712 | | - }, |
713 | | - "end": { |
714 | | - "line": 4, |
715 | | - "character": 13 |
716 | | - } |
717 | | - }, |
718 | | - "alsKind": [ |
719 | | - "call" |
720 | | - ] |
| 686 | + "alsKind": ["reference"] |
721 | 687 | } |
722 | 688 | ] |
723 | 689 | } |
|
0 commit comments