Skip to content

Commit a988b52

Browse files
Don't mention exhaustive list of predefined tasks
Just mention that they are all prefixed by `ada:` and that they can be found via the `Run Task` command. Add a screenshot to make it clearer. For eng/ide/ada_language_server#1375
1 parent 075aa49 commit a988b52

File tree

2 files changed

+8
-24
lines changed

2 files changed

+8
-24
lines changed

README.md

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -157,25 +157,11 @@ See a [dedicated document](doc/refactoring_tools.md) with the list of available
157157

158158
### Tasks
159159

160-
The extension provides the following auto-detected tasks
161-
(under `/Terminal/Run Task...` menu):
162-
163-
* `ada: Build current project` - launch `gprbuild` to build the current GPR project
164-
* `ada: Check current file` - launch `gprbuild` to check errors in the current editor
165-
* `ada: Clean current project` - launch `gprclean` to clean the current GPR project
166-
* `spark: Examine project` - launch `gnatprove` in flow analysis mode on the current GPR project
167-
* `spark: Examine file` - launch `gnatprove` in flow analysis mode on the file in the current editor
168-
* `spark: Examine subprogram` - launch `gnatprove` in flow analysis mode on the current subprogram in the current editor
169-
* `spark: Prove project` - launch `gnatprove` on the current GPR project
170-
* `spark: Prove file` - launch `gnatprove` on the file in the current editor
171-
* `spark: Prove subprogram` - launch `gnatprove` on the current subprogram in the current editor
172-
* `spark: Prove selected region` - launch `gnatprove` on the selected region in the current editor
173-
* `spark: Prove line` - launch `gnatprove` on the cursor line in the current editor
174-
* `spark: Clean project for proof` - launch `gnatprove` on the current GPR project to clean proof artefacts
175-
* `ada: Analyze the project with GNAT SAS`
176-
* `ada: Analyze the current file with GNAT SAS`
177-
* `ada: Create a report after a GNAT SAS analysis`
178-
* `ada: Analyze the project with GNAT SAS and produce a report`
160+
The extension provides a number of auto-detected tasks under the `/Terminal/Run Task...` menu. These
161+
predefined tasks are all prefixed by `ada:` and belong to the `ada` group.
162+
They can be used to build and run your program (`ada: Build current project` task) or launch external tools such as GNAT SAS, GNATprove and a few others.
163+
164+
<img src="doc/run-task-ada-tasks.png" width="500" alt="GNATtest Test Results"/>
179165

180166
You can bind keyboard shortcuts to them by adding to the `keybindings.json` file:
181167

@@ -246,14 +232,12 @@ You can also customize the working directory of the task or the environment vari
246232
#### Tasks for Project Mains
247233

248234
If your GPR project defines main programs via the project attribute `Main`, additional tasks are automatically provided for each defined main.
249-
For example, if the project defines a `main1.adb` and `main2.adb` located under the `src/` source directory, the following tasks will be available:
235+
For example, if the project defines a `main1.adb` and `main2.adb` located under the `src/` source directory, two different tasks will be available to build a given main:
250236

251237
* `ada: Build main - src/main1.adb`
252238
* `ada: Run main - src/main1.adb`
253-
* `ada: Build and run main - src/main1.adb`
254-
* `ada: Build main - src/main2.adb`
255-
* `ada: Run main - src/main2.adb`
256-
* `ada: Build and run main - src/main2.adb`
239+
240+
Same thing for all the predefined tasks that can have a main specified in their command line.
257241

258242
### Alire Support
259243

doc/run-task-ada-tasks.png

151 KB
Loading

0 commit comments

Comments
 (0)