Skip to content

Commit 6e0aeef

Browse files
AnthonyLeonardoGracioeliericha
authored andcommitted
Adapt to new LAL syntax diagnostic
For eng/ide/ada_language_server#1693 (cherry picked from commit f0015a3)
1 parent 5bc7519 commit 6e0aeef

File tree

1 file changed

+12
-23
lines changed
  • testsuite/ada_lsp/editor.incremental

1 file changed

+12
-23
lines changed

testsuite/ada_lsp/editor.incremental/test.json

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -612,38 +612,27 @@
612612
},
613613
"wait": [
614614
{
615+
"jsonrpc": "2.0",
616+
"method": "textDocument/publishDiagnostics",
615617
"params": {
616-
"uri": "$URI{hello.ads}",
617618
"diagnostics": [
618619
{
620+
"message": "Expected 'end', got Termination",
619621
"range": {
620-
"start": {
621-
"line": 0,
622-
"character": 0
623-
},
624622
"end": {
625-
"line": 0,
626-
"character": 7
627-
}
628-
},
629-
"message": "Skipped token package"
630-
},
631-
{
632-
"range": {
633-
"start": {
634-
"line": 0,
635-
"character": 8
623+
"character": 0,
624+
"line": 5
636625
},
637-
"end": {
638-
"line": 0,
639-
"character": 13
626+
"start": {
627+
"character": 0,
628+
"line": 5
640629
}
641630
},
642-
"message": "Skipped token hello"
631+
"source": "libadalang"
643632
}
644-
]
645-
},
646-
"method": "textDocument/publishDiagnostics"
633+
],
634+
"uri": "$URI{hello.ads}"
635+
}
647636
}
648637
]
649638
}

0 commit comments

Comments
 (0)