|
1 | 1 | [ |
2 | 2 | { |
3 | 3 | "comment": [ |
4 | | - "Test didRenameFiles notification" |
5 | | - ] |
| 4 | + "Test didRenameFiles notification when files renamed outside of ", |
| 5 | + "the ALS (e.g: via a shell command). All the subsequent requests are expected ", |
| 6 | + "to have null results since GPR2 does not support units that do not match ", |
| 7 | + "source names." |
| 8 | + ] |
6 | 9 | }, |
7 | 10 | { |
8 | 11 | "start": { |
9 | 12 | "cmd": ["${ALS}"] |
10 | 13 | } |
11 | | - }, { |
| 14 | + }, |
| 15 | + { |
12 | 16 | "send": { |
13 | 17 | "request": { |
14 | 18 | "jsonrpc": "2.0", |
|
66 | 70 | "uri": "$URI{main.adb}", |
67 | 71 | "languageId": "ada", |
68 | 72 | "version": 1, |
69 | | - "text": "with Bar;\nprocedure Main is\nbegin\n Bar.Hello;\nend Main;\n" |
| 73 | + "text": "with Foo;\nprocedure Main is\nbegin\n Foo.Hello;\nend Main;\n" |
70 | 74 | } |
71 | 75 | } |
72 | 76 | }, |
|
110 | 114 | } |
111 | 115 | }, |
112 | 116 | { |
113 | | - "shell": ["mv", |
114 | | - "${DIR}${DIR_SEP}src1${DIR_SEP}foo.1.ada", |
115 | | - "${DIR}${DIR_SEP}src1${DIR_SEP}bar.1.ada"] |
| 117 | + "shell": [ |
| 118 | + "mv", |
| 119 | + "${DIR}${DIR_SEP}src1${DIR_SEP}foo.1.ada", |
| 120 | + "${DIR}${DIR_SEP}src1${DIR_SEP}bar.1.ada" |
| 121 | + ] |
116 | 122 | }, |
117 | 123 | { |
118 | | - "shell": ["mv", |
119 | | - "${DIR}${DIR_SEP}src2${DIR_SEP}foo.adb", |
120 | | - "${DIR}${DIR_SEP}src2${DIR_SEP}bar.adb"] |
| 124 | + "shell": [ |
| 125 | + "mv", |
| 126 | + "${DIR}${DIR_SEP}src2${DIR_SEP}foo.adb", |
| 127 | + "${DIR}${DIR_SEP}src2${DIR_SEP}bar.adb" |
| 128 | + ] |
121 | 129 | }, |
122 | 130 | { |
123 | 131 | "send": { |
|
141 | 149 | } |
142 | 150 | }, |
143 | 151 | { |
144 | | - "send": { |
145 | | - "request": { |
146 | | - "jsonrpc":"2.0", |
147 | | - "id": 5, |
148 | | - "method":"workspace/executeCommand", |
149 | | - "params":{ |
150 | | - "command": "als-other-file", |
151 | | - "arguments": [ |
152 | | - { |
153 | | - "uri": "$URI{src1/bar.1.ada}" |
154 | | - } |
155 | | - ] |
156 | | - } |
157 | | - }, |
158 | | - "wait":[ |
159 | | - { |
160 | | - "jsonrpc": "2.0", |
161 | | - "method": "window/showDocument", |
162 | | - "params": { |
163 | | - "uri": "$URI{src2/bar.adb}", |
164 | | - "takeFocus": true |
165 | | - } |
166 | | - }, |
167 | | - { |
168 | | - "jsonrpc": "2.0", |
169 | | - "id": 5, |
170 | | - "result": null |
171 | | - } |
172 | | - ] |
173 | | - } |
174 | | - }, |
175 | | - { |
176 | | - "send": { |
177 | | - "request": { |
178 | | - "jsonrpc":"2.0", |
179 | | - "id": 6, |
180 | | - "method":"workspace/executeCommand", |
181 | | - "params":{ |
182 | | - "command": "als-other-file", |
183 | | - "arguments": [ |
184 | | - { |
185 | | - "uri": "$URI{src1/bar.1.ada}" |
186 | | - } |
187 | | - ] |
188 | | - } |
189 | | - }, |
190 | | - "wait":[ |
191 | | - { |
192 | | - "jsonrpc": "2.0", |
193 | | - "method": "window/showDocument", |
194 | | - "params": { |
195 | | - "uri": "$URI{src2/bar.adb}", |
196 | | - "takeFocus": true |
197 | | - } |
198 | | - }, |
199 | | - { |
200 | | - "jsonrpc": "2.0", |
201 | | - "id": 6, |
202 | | - "result": null |
203 | | - } |
204 | | - ] |
205 | | - } |
| 152 | + "send": { |
| 153 | + "request": { |
| 154 | + "jsonrpc": "2.0", |
| 155 | + "id": 5, |
| 156 | + "method": "workspace/executeCommand", |
| 157 | + "params": { |
| 158 | + "command": "als-other-file", |
| 159 | + "arguments": [ |
| 160 | + { |
| 161 | + "uri": "$URI{src1/bar.1.ada}" |
| 162 | + } |
| 163 | + ] |
| 164 | + } |
| 165 | + }, |
| 166 | + "wait": [ |
| 167 | + { |
| 168 | + "jsonrpc": "2.0", |
| 169 | + "id": 5, |
| 170 | + "result": null |
| 171 | + } |
| 172 | + ] |
| 173 | + } |
| 174 | + }, |
| 175 | + { |
| 176 | + "send": { |
| 177 | + "request": { |
| 178 | + "jsonrpc": "2.0", |
| 179 | + "id": 6, |
| 180 | + "method": "workspace/executeCommand", |
| 181 | + "params": { |
| 182 | + "command": "als-other-file", |
| 183 | + "arguments": [ |
| 184 | + { |
| 185 | + "uri": "$URI{src1/bar.1.ada}" |
| 186 | + } |
| 187 | + ] |
| 188 | + } |
| 189 | + }, |
| 190 | + "wait": [ |
| 191 | + { |
| 192 | + "jsonrpc": "2.0", |
| 193 | + "id": 6, |
| 194 | + "result": null |
| 195 | + } |
| 196 | + ] |
| 197 | + } |
206 | 198 | }, |
207 | 199 | { |
208 | 200 | "send": { |
|
220 | 212 | } |
221 | 213 | } |
222 | 214 | }, |
223 | | - "wait": [ |
224 | | - { |
225 | | - "id": 4, |
226 | | - "result": { |
227 | | - "uri": "$URI{src1/bar.1.ada}", |
228 | | - "range": { |
229 | | - "start": { |
230 | | - "line": 2, |
231 | | - "character": 13 |
232 | | - }, |
233 | | - "end": { |
234 | | - "line": 2, |
235 | | - "character": 18 |
236 | | - } |
237 | | - } |
238 | | - } |
239 | | - } |
240 | | - ] |
| 215 | + "wait": [] |
241 | 216 | } |
242 | 217 | }, |
243 | 218 | { |
|
0 commit comments