Skip to content

Commit 7cd490f

Browse files
author
mergerepo
committed
Merge remote branch 'origin/master' into edge
(no-precommit-check no-tn-check)
2 parents 35bdf6f + dc1f392 commit 7cd490f

File tree

8 files changed

+58
-53
lines changed

8 files changed

+58
-53
lines changed

source/client/lsp-raw_clients.adb

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ package body LSP.Raw_Clients is
7171

7272
function Is_Server_Running (Self : Raw_Client'Class) return Boolean is
7373
begin
74-
return Self.Server.Status in Spawn.Processes.Running;
74+
return Self.Server.Status in Spawn.Running;
7575
end Is_Server_Running;
7676

7777
-------------------------------

source/tester/tester-tests.adb

+4-4
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ package body Tester.Tests is
204204
Self.Send_Message (Text);
205205

206206
loop
207-
Spawn.Processes.Monitor_Loop (Timeout => 100);
207+
Spawn.Processes.Monitor_Loop (Timeout => 0.1);
208208
exit when GNATCOLL.JSON.Length (Self.Waits) = 0;
209209

210210
if Ada.Calendar.Clock - Self.Started > Timeout
@@ -408,7 +408,7 @@ package body Tester.Tests is
408408
Listener.Process.Close_Standard_Error;
409409

410410
loop
411-
Spawn.Processes.Monitor_Loop (Timeout => 10);
411+
Spawn.Processes.Monitor_Loop (Timeout => 0.01);
412412
exit when Listener.Done;
413413
end loop;
414414

@@ -469,7 +469,7 @@ package body Tester.Tests is
469469
Self.Start;
470470

471471
loop
472-
Spawn.Processes.Monitor_Loop (Timeout => 1);
472+
Spawn.Processes.Monitor_Loop (Timeout => 0.001);
473473
exit when Self.Is_Server_Running;
474474
end loop;
475475

@@ -511,7 +511,7 @@ package body Tester.Tests is
511511
end if;
512512

513513
loop
514-
Spawn.Processes.Monitor_Loop (Timeout => 1);
514+
Spawn.Processes.Monitor_Loop (Timeout => 0.001);
515515
exit when not Self.Is_Server_Running;
516516
end loop;
517517

testsuite/ada_lsp/T713-012.completion.generic_package/test.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,15 @@
641641
}
642642
}
643643
},
644-
"wait": []
644+
"wait": [
645+
{
646+
"method": "textDocument/publishDiagnostics",
647+
"params": {
648+
"uri": "$URI{src/inst.ads}",
649+
"diagnostics": []
650+
}
651+
}
652+
]
645653
}
646654
},
647655
{
@@ -652,13 +660,6 @@
652660
"method": "shutdown"
653661
},
654662
"wait": [
655-
{
656-
"method": "textDocument/publishDiagnostics",
657-
"params": {
658-
"uri": "$URI{src/inst.ads}",
659-
"diagnostics": []
660-
}
661-
},
662663
{
663664
"id": 51,
664665
"result": null

testsuite/ada_lsp/V628-024.symbol_diff/test.json

+10-9
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,19 @@
226226
"method": "textDocument/didClose",
227227
"params": {
228228
"textDocument": {
229-
"uri": "file:///home/ogorodnik/adacore/tests/hello/src/main.adb"
229+
"uri": "$URI{main.adb}"
230230
}
231231
}
232232
},
233-
"wait": []
233+
"wait": [
234+
{
235+
"method": "textDocument/publishDiagnostics",
236+
"params": {
237+
"uri": "$URI{main.adb}",
238+
"diagnostics": []
239+
}
240+
}
241+
]
234242
}
235243
},
236244
{
@@ -241,13 +249,6 @@
241249
"method": "shutdown"
242250
},
243251
"wait": [
244-
{
245-
"method": "textDocument/publishDiagnostics",
246-
"params": {
247-
"uri": "file:///home/ogorodnik/adacore/tests/hello/src/main.adb",
248-
"diagnostics": []
249-
}
250-
},
251252
{
252253
"id": 9,
253254
"result": null

testsuite/ada_lsp/completion.snippet.formatting/test.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,15 @@
399399
}
400400
}
401401
},
402-
"wait": []
402+
"wait": [
403+
{
404+
"method": "textDocument/publishDiagnostics",
405+
"params": {
406+
"uri": "$URI{foo.adb}",
407+
"diagnostics": []
408+
}
409+
}
410+
]
403411
}
404412
},
405413
{
@@ -410,13 +418,6 @@
410418
"method": "shutdown"
411419
},
412420
"wait": [
413-
{
414-
"method": "textDocument/publishDiagnostics",
415-
"params": {
416-
"uri": "$URI{foo.adb}",
417-
"diagnostics": []
418-
}
419-
},
420421
{
421422
"id": 53,
422423
"result": null

testsuite/ada_lsp/completion.snippet.formatting2/test.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,15 @@
416416
}
417417
}
418418
},
419-
"wait": []
419+
"wait": [
420+
{
421+
"method": "textDocument/publishDiagnostics",
422+
"params": {
423+
"uri": "$URI{foo.adb}",
424+
"diagnostics": []
425+
}
426+
}
427+
]
420428
}
421429
},
422430
{
@@ -427,13 +435,6 @@
427435
"method": "shutdown"
428436
},
429437
"wait": [
430-
{
431-
"method": "textDocument/publishDiagnostics",
432-
"params": {
433-
"uri": "$URI{foo.adb}",
434-
"diagnostics": []
435-
}
436-
},
437438
{
438439
"id": 31,
439440
"result": null

testsuite/ada_lsp/completion.snippet.formatting3/test.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,15 @@
357357
}
358358
}
359359
},
360-
"wait": []
360+
"wait": [
361+
{
362+
"method": "textDocument/publishDiagnostics",
363+
"params": {
364+
"uri": "$URI{foo.adb}",
365+
"diagnostics": []
366+
}
367+
}
368+
]
361369
}
362370
},
363371
{
@@ -368,13 +376,6 @@
368376
"method": "shutdown"
369377
},
370378
"wait": [
371-
{
372-
"method": "textDocument/publishDiagnostics",
373-
"params": {
374-
"uri": "$URI{foo.adb}",
375-
"diagnostics": []
376-
}
377-
},
378379
{
379380
"id": 16,
380381
"result": null

testsuite/ada_lsp/incorrect_fallback/incorrect_fallback.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,12 @@
236236
"id": 2,
237237
"method": "shutdown"
238238
},
239-
"wait": []
239+
"wait": [
240+
{
241+
"id": 2,
242+
"result": null
243+
}
244+
]
240245
}
241246
},
242247
{
@@ -246,12 +251,7 @@
246251
"jsonrpc": "2.0",
247252
"method": "exit"
248253
},
249-
"wait": [
250-
{
251-
"id": 2,
252-
"result": null
253-
}
254-
]
254+
"wait": []
255255
}
256256
},
257257
{

0 commit comments

Comments
 (0)