You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: README.md
+8-24Lines changed: 8 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -157,25 +157,11 @@ See a [dedicated document](doc/refactoring_tools.md) with the list of available
157
157
158
158
### Tasks
159
159
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
+
<imgsrc="doc/run-task-ada-tasks.png"width="500"alt="GNATtest Test Results"/>
179
165
180
166
You can bind keyboard shortcuts to them by adding to the `keybindings.json` file:
181
167
@@ -246,14 +232,12 @@ You can also customize the working directory of the task or the environment vari
246
232
#### Tasks for Project Mains
247
233
248
234
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:
250
236
251
237
*`ada: Build main - src/main1.adb`
252
238
*`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.
0 commit comments