Skip to content

Commit 1ee79c4

Browse files
committed
Merge branch 'topic/vadim/lsp317' into 'master'
Reorganization of project files and source code. See merge request eng/ide/ada_language_server!1618
2 parents 5d5d7ad + 712202d commit 1ee79c4

File tree

607 files changed

+104
-36
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

607 files changed

+104
-36
lines changed

gnat/lsp.gpr

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ with "lsp_common";
1212
project LSP is
1313

1414
for Source_Dirs use
15-
("../source/protocol",
16-
"../source/protocol/generated");
15+
("../liblsp_3_16/source/",
16+
"../liblsp_3_16/source/generated/");
1717
for Object_Dir use "../.obj/" & LSP_Common.Superproject & "/lsp";
1818

1919
package Compiler renames LSP_Common.Compiler;

gnat/lsp_3_17.gpr

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ with "lsp_common";
1010
project LSP_3_17 is
1111

1212
for Source_Dirs use
13-
("../source/lsp_3.17",
14-
"../source/lsp_3.17/generated");
13+
("../liblsp_3_17/source/",
14+
"../liblsp_3_17/source/generated/");
1515
for Object_Dir use "../.obj/" & LSP_Common.Superproject & "/lsp_317";
1616

1717
package Compiler extends LSP_Common.Compiler is

gnat/lsp_base.gpr

+1-16
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,11 @@ with "lsp_common";
1111

1212
project LSP_Base is
1313

14-
for Source_Dirs use
15-
("../source/common",
16-
"../source/uri");
14+
for Source_Dirs use ("../liblsp_base/source/");
1715
for Object_Dir use "../.obj/" & LSP_Common.Superproject & "/lsp_base";
1816

1917
package Compiler renames LSP_Common.Compiler;
2018

21-
package Naming is
22-
case LSP_Common.OS_API is
23-
when "Windows_NT" =>
24-
for Implementation ("LSP.Stdio_Streams.Initialize")
25-
use "lsp-stdio_streams-init_windows.adb";
26-
27-
when others =>
28-
for Implementation ("LSP.Stdio_Streams.Initialize")
29-
use "lsp-stdio_streams-init_others.adb";
30-
31-
end case;
32-
end Naming;
33-
3419
package Pretty_Printer renames LSP_Common.Pretty_Printer;
3520

3621
end LSP_Base;

gnat/lsp_server.gpr

+20-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
1-
------------------------------------------------------------------------------
2-
-- Language Server Protocol --
3-
-- --
4-
-- Copyright (C) 2018-2023, AdaCore --
5-
-- --
6-
-- This is free software; you can redistribute it and/or modify it under --
7-
-- terms of the GNU General Public License as published by the Free Soft- --
8-
-- ware Foundation; either version 3, or (at your option) any later ver- --
9-
-- sion. This software is distributed in the hope that it will be useful, --
10-
-- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- --
11-
-- TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public --
12-
-- License for more details. You should have received a copy of the GNU --
13-
-- General Public License distributed with this software; see file --
14-
-- COPYING3. If not, go to http://www.gnu.org/licenses for a complete copy --
15-
-- of the license. --
16-
------------------------------------------------------------------------------
1+
--
2+
-- Copyright (C) 2018-2024, AdaCore
3+
--
4+
-- SPDX-License-Identifier: Apache-2.0
5+
--
176

187
with "gpr2.gpr";
198
with "libadalang";
@@ -24,6 +13,7 @@ with "libgnatdoc.gpr";
2413
with "spawn.gpr";
2514

2615
with "lsp_3_17";
16+
with "lsp_common";
2717

2818
project LSP_Server is
2919

@@ -41,6 +31,7 @@ project LSP_Server is
4131
for Source_Dirs use
4232
("../source/server",
4333
"../source/ada",
34+
"../source/common",
4435
"../source/gpr",
4536
"../source/ada/generated",
4637
"../source/memory");
@@ -49,6 +40,19 @@ project LSP_Server is
4940
for Main use ("lsp-ada_driver.adb");
5041
for Languages use ("Ada", "C++");
5142

43+
package Naming is
44+
case LSP_Common.OS_API is
45+
when "Windows_NT" =>
46+
for Implementation ("LSP.Stdio_Streams.Initialize")
47+
use "lsp-stdio_streams-init_windows.adb";
48+
49+
when others =>
50+
for Implementation ("LSP.Stdio_Streams.Initialize")
51+
use "lsp-stdio_streams-init_others.adb";
52+
53+
end case;
54+
end Naming;
55+
5256
package Compiler is
5357
for Default_Switches ("Ada") use
5458
LSP_3_17.Compiler'Default_Switches ("Ada");

liblsp_3_16/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.objs/
2+
/.libs/
3+
/alire/
4+
/config/

liblsp_3_16/alire.toml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name = "liblsp_3_16"
2+
description = "Language Server Protocol Support, Version 3.16"
3+
version = "0.1.0-dev"
4+
5+
authors = ["Vadim Godunko"]
6+
maintainers = ["Vadim Godunko <[email protected]>"]
7+
maintainers-logins = ["godunko"]
8+
licenses = "Apache-2.0"
9+
website = ""
10+
tags = ["lsp"]
11+
12+
project-files = ["../gnat/lsp.gpr"]
13+
14+
[configuration]
15+
generate_ada = false
16+
generate_c = false
17+
generate_gpr = true
18+
19+
[[depends-on]]
20+
liblsp_base = "*"
21+
gnatcoll = "*"
22+
23+
[[pins]]
24+
liblsp_base = { path='../liblsp_base' }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

liblsp_3_17/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.objs/
2+
/.libs/
3+
/alire/
4+
/config/

liblsp_3_17/alire.toml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name = "liblsp_3_17"
2+
description = "Language Server Protocol Support, Version 3.17"
3+
version = "0.1.0-dev"
4+
5+
authors = ["Vadim Godunko"]
6+
maintainers = ["Vadim Godunko <[email protected]>"]
7+
maintainers-logins = ["godunko"]
8+
licenses = "Apache-2.0"
9+
website = ""
10+
tags = ["lsp"]
11+
12+
project-files = ["../gnat/lsp_3_17.gpr"]
13+
14+
[configuration]
15+
generate_ada = false
16+
generate_c = false
17+
generate_gpr = true
18+
19+
[[depends-on]]
20+
liblsp_base = "*"
21+
22+
[[pins]]
23+
liblsp_base = { path='../liblsp_base' }

0 commit comments

Comments
 (0)