Skip to content

Commit 613729a

Browse files
Merge branch 'topic/fix-example' into 'master'
Fix GNATprove code sample See merge request eng/ide/ada_language_server!2144
2 parents 708704b + 9ad11ae commit 613729a

File tree

1 file changed

+67
-75
lines changed
  • integration/vscode/Code Samples/gnatprove/.vscode

1 file changed

+67
-75
lines changed
Lines changed: 67 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,72 @@
11
{
2-
// See https://go.microsoft.com/fwlink/?LinkId=733558
3-
// for the documentation about the tasks.json format
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"label": "build",
8-
"type": "shell",
9-
"command": "gprbuild",
10-
"options": {
11-
"cwd": "${workspaceFolder}"
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "build",
8+
"type": "shell",
9+
"command": "gprbuild",
10+
"options": {
11+
"cwd": "${workspaceFolder}"
12+
},
13+
"args": ["-p", "-P", "test.gpr", "-cargs", "-gnatef"],
14+
"problemMatcher": ["$ada-error", "$ada-warning", "$ada-info"],
15+
"group": {
16+
"kind": "build",
17+
"isDefault": true
18+
}
19+
},
20+
{
21+
"label": "prove",
22+
"type": "shell",
23+
"command": "gnatprove",
24+
"options": {
25+
"cwd": "${workspaceFolder}"
26+
},
27+
"args": ["--report=all", "-P", "test.gpr", "-cargs", "-gnatef"],
28+
"problemMatcher": [
29+
{
30+
"owner": "ada",
31+
"fileLocation": ["autoDetect", "${workspaceFolder}"],
32+
"severity": "error",
33+
"pattern": {
34+
"regexp": "(\\S+):(\\d+):(\\d+): error: (.+)",
35+
"file": 1,
36+
"line": 2,
37+
"column": 3,
38+
"message": 4
39+
}
1240
},
13-
"args": [
14-
"-p",
15-
"-P",
16-
"test.gpr"
17-
"-cargs",
18-
"-gnatef"
19-
],
20-
"problemMatcher": ["$ada-error", "$ada-warning", "$ada-info"],
21-
"group": {
22-
"kind": "build",
23-
"isDefault": true
24-
}
25-
},
26-
{
27-
"label": "prove",
28-
"type": "shell",
29-
"command": "gnatprove",
30-
"options": {
31-
"cwd": "${workspaceFolder}"
41+
{
42+
"owner": "ada",
43+
"fileLocation": ["autoDetect", "${workspaceFolder}"],
44+
"severity": "warning",
45+
"pattern": {
46+
"regexp": "(\\S+):(\\d+):(\\d+): warning: (.+)",
47+
"file": 1,
48+
"line": 2,
49+
"column": 3,
50+
"message": 4
51+
}
3252
},
33-
"args": [
34-
"--report=all",
35-
"-P",
36-
"test.gpr",
37-
"-cargs",
38-
"-gnatef"
39-
],
40-
"problemMatcher": [{
41-
"owner": "ada",
42-
"fileLocation": ["autoDetect", "${workspaceFolder}"],
43-
"severity": "error",
44-
"pattern": {
45-
"regexp": "(\\S+):(\\d+):(\\d+): error: (.+)",
46-
"file": 1,
47-
"line": 2,
48-
"column": 3,
49-
"message": 4
50-
}
51-
},{
52-
"owner": "ada",
53-
"fileLocation": ["autoDetect", "${workspaceFolder}"],
54-
"severity": "warning",
55-
"pattern": {
56-
"regexp": "(\\S+):(\\d+):(\\d+): warning: (.+)",
57-
"file": 1,
58-
"line": 2,
59-
"column": 3,
60-
"message": 4
61-
}
62-
},{
63-
"owner": "ada",
64-
"fileLocation": ["autoDetect", "${workspaceFolder}"],
65-
"severity": "info",
66-
"pattern": {
67-
"regexp": "(\\S+):(\\d+):(\\d+): info: (.+)",
68-
"file": 1,
69-
"line": 2,
70-
"column": 3,
71-
"message": 4
72-
}
73-
}],
74-
"group": {
75-
"kind": "build",
76-
"isDefault": true
53+
{
54+
"owner": "ada",
55+
"fileLocation": ["autoDetect", "${workspaceFolder}"],
56+
"severity": "info",
57+
"pattern": {
58+
"regexp": "(\\S+):(\\d+):(\\d+): info: (.+)",
59+
"file": 1,
60+
"line": 2,
61+
"column": 3,
62+
"message": 4
63+
}
7764
}
78-
}
79-
]
65+
],
66+
"group": {
67+
"kind": "build",
68+
"isDefault": true
69+
}
70+
}
71+
]
8072
}

0 commit comments

Comments
 (0)