File tree 8 files changed +58
-53
lines changed
T713-012.completion.generic_package
completion.snippet.formatting
completion.snippet.formatting2
completion.snippet.formatting3
8 files changed +58
-53
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ package body LSP.Raw_Clients is
71
71
72
72
function Is_Server_Running (Self : Raw_Client'Class) return Boolean is
73
73
begin
74
- return Self.Server.Status in Spawn.Processes. Running;
74
+ return Self.Server.Status in Spawn.Running;
75
75
end Is_Server_Running ;
76
76
77
77
-- -----------------------------
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ package body Tester.Tests is
204
204
Self.Send_Message (Text);
205
205
206
206
loop
207
- Spawn.Processes.Monitor_Loop (Timeout => 100 );
207
+ Spawn.Processes.Monitor_Loop (Timeout => 0.1 );
208
208
exit when GNATCOLL.JSON.Length (Self.Waits) = 0 ;
209
209
210
210
if Ada.Calendar.Clock - Self.Started > Timeout
@@ -408,7 +408,7 @@ package body Tester.Tests is
408
408
Listener.Process.Close_Standard_Error;
409
409
410
410
loop
411
- Spawn.Processes.Monitor_Loop (Timeout => 10 );
411
+ Spawn.Processes.Monitor_Loop (Timeout => 0.01 );
412
412
exit when Listener.Done;
413
413
end loop ;
414
414
@@ -469,7 +469,7 @@ package body Tester.Tests is
469
469
Self.Start;
470
470
471
471
loop
472
- Spawn.Processes.Monitor_Loop (Timeout => 1 );
472
+ Spawn.Processes.Monitor_Loop (Timeout => 0.001 );
473
473
exit when Self.Is_Server_Running;
474
474
end loop ;
475
475
@@ -511,7 +511,7 @@ package body Tester.Tests is
511
511
end if ;
512
512
513
513
loop
514
- Spawn.Processes.Monitor_Loop (Timeout => 1 );
514
+ Spawn.Processes.Monitor_Loop (Timeout => 0.001 );
515
515
exit when not Self.Is_Server_Running;
516
516
end loop ;
517
517
Original file line number Diff line number Diff line change 641
641
}
642
642
}
643
643
},
644
- "wait" : []
644
+ "wait" : [
645
+ {
646
+ "method" : " textDocument/publishDiagnostics" ,
647
+ "params" : {
648
+ "uri" : " $URI{src/inst.ads}" ,
649
+ "diagnostics" : []
650
+ }
651
+ }
652
+ ]
645
653
}
646
654
},
647
655
{
652
660
"method" : " shutdown"
653
661
},
654
662
"wait" : [
655
- {
656
- "method" : " textDocument/publishDiagnostics" ,
657
- "params" : {
658
- "uri" : " $URI{src/inst.ads}" ,
659
- "diagnostics" : []
660
- }
661
- },
662
663
{
663
664
"id" : 51 ,
664
665
"result" : null
Original file line number Diff line number Diff line change 226
226
"method" : " textDocument/didClose" ,
227
227
"params" : {
228
228
"textDocument" : {
229
- "uri" : " file:///home/ogorodnik/adacore/tests/hello/src/ main.adb"
229
+ "uri" : " $URI{ main.adb} "
230
230
}
231
231
}
232
232
},
233
- "wait" : []
233
+ "wait" : [
234
+ {
235
+ "method" : " textDocument/publishDiagnostics" ,
236
+ "params" : {
237
+ "uri" : " $URI{main.adb}" ,
238
+ "diagnostics" : []
239
+ }
240
+ }
241
+ ]
234
242
}
235
243
},
236
244
{
241
249
"method" : " shutdown"
242
250
},
243
251
"wait" : [
244
- {
245
- "method" : " textDocument/publishDiagnostics" ,
246
- "params" : {
247
- "uri" : " file:///home/ogorodnik/adacore/tests/hello/src/main.adb" ,
248
- "diagnostics" : []
249
- }
250
- },
251
252
{
252
253
"id" : 9 ,
253
254
"result" : null
Original file line number Diff line number Diff line change 399
399
}
400
400
}
401
401
},
402
- "wait" : []
402
+ "wait" : [
403
+ {
404
+ "method" : " textDocument/publishDiagnostics" ,
405
+ "params" : {
406
+ "uri" : " $URI{foo.adb}" ,
407
+ "diagnostics" : []
408
+ }
409
+ }
410
+ ]
403
411
}
404
412
},
405
413
{
410
418
"method" : " shutdown"
411
419
},
412
420
"wait" : [
413
- {
414
- "method" : " textDocument/publishDiagnostics" ,
415
- "params" : {
416
- "uri" : " $URI{foo.adb}" ,
417
- "diagnostics" : []
418
- }
419
- },
420
421
{
421
422
"id" : 53 ,
422
423
"result" : null
Original file line number Diff line number Diff line change 416
416
}
417
417
}
418
418
},
419
- "wait" : []
419
+ "wait" : [
420
+ {
421
+ "method" : " textDocument/publishDiagnostics" ,
422
+ "params" : {
423
+ "uri" : " $URI{foo.adb}" ,
424
+ "diagnostics" : []
425
+ }
426
+ }
427
+ ]
420
428
}
421
429
},
422
430
{
427
435
"method" : " shutdown"
428
436
},
429
437
"wait" : [
430
- {
431
- "method" : " textDocument/publishDiagnostics" ,
432
- "params" : {
433
- "uri" : " $URI{foo.adb}" ,
434
- "diagnostics" : []
435
- }
436
- },
437
438
{
438
439
"id" : 31 ,
439
440
"result" : null
Original file line number Diff line number Diff line change 357
357
}
358
358
}
359
359
},
360
- "wait" : []
360
+ "wait" : [
361
+ {
362
+ "method" : " textDocument/publishDiagnostics" ,
363
+ "params" : {
364
+ "uri" : " $URI{foo.adb}" ,
365
+ "diagnostics" : []
366
+ }
367
+ }
368
+ ]
361
369
}
362
370
},
363
371
{
368
376
"method" : " shutdown"
369
377
},
370
378
"wait" : [
371
- {
372
- "method" : " textDocument/publishDiagnostics" ,
373
- "params" : {
374
- "uri" : " $URI{foo.adb}" ,
375
- "diagnostics" : []
376
- }
377
- },
378
379
{
379
380
"id" : 16 ,
380
381
"result" : null
Original file line number Diff line number Diff line change 236
236
"id" : 2 ,
237
237
"method" : " shutdown"
238
238
},
239
- "wait" : []
239
+ "wait" : [
240
+ {
241
+ "id" : 2 ,
242
+ "result" : null
243
+ }
244
+ ]
240
245
}
241
246
},
242
247
{
246
251
"jsonrpc" : " 2.0" ,
247
252
"method" : " exit"
248
253
},
249
- "wait" : [
250
- {
251
- "id" : 2 ,
252
- "result" : null
253
- }
254
- ]
254
+ "wait" : []
255
255
}
256
256
},
257
257
{
You can’t perform that action at this time.
0 commit comments