Skip to content

Commit 91c9142

Browse files
committed
Add problem matcher
1 parent ab28fdc commit 91c9142

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

package.json

+12
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@
4141
],
4242
"main": "./out/extension",
4343
"contributes": {
44+
"problemMatchers": [
45+
{
46+
"owner": "gradle",
47+
"name": "gradle",
48+
"fileLocation": ["relative", "${workspaceFolder}"],
49+
"pattern": {
50+
"regexp": "^.*(FAILURE):\\s*(.*)$",
51+
"severity": 1,
52+
"message": 2
53+
}
54+
}
55+
],
4456
"views": {
4557
"explorer": [
4658
{

src/tasks.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ export function createTask(
247247
folder,
248248
normalizedTaskName,
249249
'gradle',
250-
new ShellExecution(getCommandLine(taskName), { cwd })
250+
new ShellExecution(getCommandLine(taskName), { cwd }),
251+
['$gradle']
251252
);
252253
task.presentationOptions = {
253254
clear: true,

0 commit comments

Comments
 (0)