Skip to content

Commit 6084fa1

Browse files
Merge branch 'topic/doc_gpr' into 'master'
Mention GPR support in ALS documentation See merge request eng/ide/ada_language_server!1568
2 parents 23dc197 + d341fc5 commit 6084fa1

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,29 @@
88
[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/AdaCore/ada_language_server/tree/edge)
99

1010
This repository contains an implementation of the [Microsoft Language Server Protocol](https://microsoft.github.io/language-server-protocol/)
11-
for Ada/SPARK.
11+
for Ada/SPARK and GPR project files.
1212

13-
Current features:
13+
Current features (general):
1414

1515
* [GNAT project files](https://docs.adacore.com/gprbuild-docs/html/gprbuild_ug/gnat_project_manager.html) support.
1616
* Basic [Alire](https://alire.ada.dev/) support.
17+
18+
For Ada/SPARK, we provide the following:
19+
1720
* Code completion for names, keywords, aggregates, etc.
1821
* Code navigation, such as Go to Definition/Declaration, Find All References, Call Hierarchies, etc.
1922
* [Code refactoring](#refactoring-tools) like insert named associations, auto-add `with`-clauses, etc.
2023
* Document/Workspace symbol search.
2124
* Code folding and formatting.
2225

26+
The Ada Language Server now also supports the GPR language, via the
27+
`--language-gpr` option, providing support for the most used LSP features
28+
such as navigation, outline and tooltips for GPR files. When this switch is
29+
present, the server will only support GPR files. To support both GPR and
30+
Ada/SPARK, you'll need to launch two instances of the server.
31+
You can refer to the [Supported LSP Server Requests](#supported-lsp-server-requests)
32+
section for more information.
33+
2334
We also provide [Visual Studio Code](https://code.visualstudio.com/)
2435
extension at
2536
[the VS Marketplace](https://marketplace.visualstudio.com/items?itemName=AdaCore.ada) and at

integration/vscode/ada/package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,14 +788,25 @@
788788
{
789789
"id": "als-get-stated-setting",
790790
"title": "Set a project file",
791-
"description": "Set the active project file in the `ada.projectFile` setting.\n [Open Settings](command:workbench.action.openSettings)",
791+
"description": "Set the active project file in the ``ada.projectFile`` setting.\n [Open Settings](command:workbench.action.openSettings)",
792792
"media": {
793793
"markdown": "media/settings.md"
794794
},
795795
"completionEvents": [
796796
"onSettingChanged:ada.projectFile"
797797
]
798798
},
799+
{
800+
"id": "als-open-project-file",
801+
"title": "GPR project file support",
802+
"description": "Open the GPR project file you have specified in the ``ada.projectFile`` setting. Open the ``Outline`` view to see all the entities (packages, switches...) of your GPR file.",
803+
"media": {
804+
"markdown": "media/settings.md"
805+
},
806+
"completionEvents": [
807+
"onLanguage:gpr"
808+
]
809+
},
799810
{
800811
"id": "als-get-stated-debug",
801812
"title": "Launch and debug",

0 commit comments

Comments
 (0)