Skip to content

Commit dee1b1e

Browse files
committed
Reflect changes in VSS JSON API.
1 parent 4f4806b commit dee1b1e

19 files changed

+123
-129
lines changed

scripts/io_gen.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@
293293
294294
with Interfaces;
295295
296-
with VSS.JSON.Streams.Readers;
297296
with VSS.Strings.Conversions;
298297
299298
with LSP.JSON_Streams;

source/client/lsp-clients.adb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
-- of the license. --
1616
------------------------------------------------------------------------------
1717

18-
with VSS.JSON.Streams.Readers.Simple;
18+
with VSS.JSON.Pull_Readers.Simple;
1919
with VSS.Stream_Element_Vectors.Conversions;
2020
with VSS.Strings.Conversions;
2121
with VSS.Text_Streams.Memory_UTF8_Input;
@@ -602,9 +602,9 @@ package body LSP.Clients is
602602
Method : out LSP.Types.Optional_String;
603603
Is_Error : in out Boolean)
604604
is
605-
use all type VSS.JSON.Streams.Readers.JSON_Event_Kind;
605+
use all type VSS.JSON.Pull_Readers.JSON_Event_Kind;
606606

607-
R : aliased VSS.JSON.Streams.Readers.Simple.JSON_Simple_Reader;
607+
R : aliased VSS.JSON.Pull_Readers.Simple.JSON_Simple_Pull_Reader;
608608
JS : aliased LSP.JSON_Streams.JSON_Stream (False, R'Access);
609609

610610
begin
@@ -655,7 +655,7 @@ package body LSP.Clients is
655655
Memory.Rewind;
656656
end Look_Ahead;
657657

658-
Reader : aliased VSS.JSON.Streams.Readers.Simple.JSON_Simple_Reader;
658+
Reader : aliased VSS.JSON.Pull_Readers.Simple.JSON_Simple_Pull_Reader;
659659
Stream : aliased LSP.JSON_Streams.JSON_Stream
660660
(Is_Server_Side => False, R => Reader'Unchecked_Access);
661661
Id : LSP.Types.LSP_Number_Or_String;

source/codec_test/codec_test.adb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ with GNATCOLL.JSON;
3232
with VSS.Stream_Element_Vectors.Conversions;
3333
with VSS.Text_Streams.Memory_UTF8_Input;
3434
with VSS.Text_Streams.Memory_UTF8_Output;
35-
with VSS.JSON.Streams.Readers.Simple;
35+
with VSS.JSON.Pull_Readers.Simple;
3636

3737
procedure Codec_Test is
3838

@@ -85,8 +85,8 @@ procedure Codec_Test is
8585
is
8686
Text_Input : aliased
8787
VSS.Text_Streams.Memory_UTF8_Input.Memory_UTF8_Input_Stream;
88-
Reader : aliased VSS.JSON.Streams.Readers
89-
.Simple.JSON_Simple_Reader;
88+
Reader : aliased
89+
VSS.JSON.Pull_Readers.Simple.JSON_Simple_Pull_Reader;
9090
In_JS : aliased LSP.JSON_Streams.JSON_Stream (False, Reader'Access);
9191
begin
9292
Text_Input.Set_Data (Input);

source/protocol/generated/lsp-message_io.adb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
with Interfaces;
44

5-
with VSS.JSON.Streams.Readers;
65
with VSS.Strings.Conversions;
76

87
with LSP.JSON_Streams;
@@ -7537,6 +7536,8 @@ package body LSP.Message_IO is
75377536
Optional_ProgressToken'Read (S, V.partialResultToken);
75387537
elsif Key = "textDocument" then
75397538
TextDocumentIdentifier'Read (S, V.textDocument);
7539+
elsif Key = "query" then
7540+
LSP.Types.Read (S, V.query);
75407541
elsif Key = "case_sensitive" then
75417542
Optional_Boolean'Read (S, V.case_sensitive);
75427543
elsif Key = "whole_word" then
@@ -7567,6 +7568,8 @@ package body LSP.Message_IO is
75677568
Optional_ProgressToken'Write (S, V.partialResultToken);
75687569
JS.Key ("textDocument");
75697570
TextDocumentIdentifier'Write (S, V.textDocument);
7571+
JS.Key ("query");
7572+
LSP.Types.Write (S, V.query);
75707573
JS.Key ("case_sensitive");
75717574
Optional_Boolean'Write (S, V.case_sensitive);
75727575
JS.Key ("whole_word");

source/protocol/lsp-generic_notifications.adb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- Language Server Protocol --
33
-- --
4-
-- Copyright (C) 2018-2020, AdaCore --
4+
-- Copyright (C) 2018-2021, AdaCore --
55
-- --
66
-- This is free software; you can redistribute it and/or modify it under --
77
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -15,7 +15,6 @@
1515
-- of the license. --
1616
------------------------------------------------------------------------------
1717

18-
with VSS.JSON.Streams.Readers;
1918
with VSS.Strings.Conversions;
2019

2120
with LSP.Types;

source/protocol/lsp-generic_optional.adb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- Language Server Protocol --
33
-- --
4-
-- Copyright (C) 2018-2019, AdaCore --
4+
-- Copyright (C) 2018-2021, AdaCore --
55
-- --
66
-- This is free software; you can redistribute it and/or modify it under --
77
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -15,8 +15,6 @@
1515
-- of the license. --
1616
------------------------------------------------------------------------------
1717

18-
with VSS.JSON.Streams.Readers;
19-
2018
with LSP.JSON_Streams;
2119

2220
package body LSP.Generic_Optional is

source/protocol/lsp-generic_requests.adb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- Language Server Protocol --
33
-- --
4-
-- Copyright (C) 2018-2020, AdaCore --
4+
-- Copyright (C) 2018-2021, AdaCore --
55
-- --
66
-- This is free software; you can redistribute it and/or modify it under --
77
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -15,12 +15,11 @@
1515
-- of the license. --
1616
------------------------------------------------------------------------------
1717

18+
with VSS.Strings.Conversions;
19+
1820
with LSP.Messages.Common_Writers;
1921
with LSP.Types;
2022

21-
with VSS.JSON.Streams.Readers;
22-
with VSS.Strings.Conversions;
23-
2423
package body LSP.Generic_Requests is
2524

2625
------------

source/protocol/lsp-generic_responses.adb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- Language Server Protocol --
33
-- --
4-
-- Copyright (C) 2018-2019, AdaCore --
4+
-- Copyright (C) 2018-2021, AdaCore --
55
-- --
66
-- This is free software; you can redistribute it and/or modify it under --
77
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -15,7 +15,6 @@
1515
-- of the license. --
1616
------------------------------------------------------------------------------
1717

18-
with VSS.JSON.Streams.Readers;
1918
with VSS.Strings.Conversions;
2019

2120
with LSP.JSON_Streams;

source/protocol/lsp-generic_sets.adb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- Language Server Protocol --
33
-- --
4-
-- Copyright (C) 2018-2019, AdaCore --
4+
-- Copyright (C) 2018-2021, AdaCore --
55
-- --
66
-- This is free software; you can redistribute it and/or modify it under --
77
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -15,8 +15,6 @@
1515
-- of the license. --
1616
------------------------------------------------------------------------------
1717

18-
with VSS.JSON.Streams.Readers;
19-
2018
with LSP.JSON_Streams;
2119

2220
package body LSP.Generic_Sets is

source/protocol/lsp-generic_vectors.adb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- Language Server Protocol --
33
-- --
4-
-- Copyright (C) 2018-2019, AdaCore --
4+
-- Copyright (C) 2018-2021, AdaCore --
55
-- --
66
-- This is free software; you can redistribute it and/or modify it under --
77
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -15,8 +15,6 @@
1515
-- of the license. --
1616
------------------------------------------------------------------------------
1717

18-
with VSS.JSON.Streams.Readers;
19-
2018
with LSP.JSON_Streams;
2119

2220
package body LSP.Generic_Vectors is

0 commit comments

Comments
 (0)