Skip to content

Commit

Permalink
fix problem matcher regex (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianignacio5 authored Jul 4, 2022
1 parent a9060b9 commit 660f761
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 24 deletions.
21 changes: 4 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,27 +101,14 @@
"contributes": {
"problemMatchers": [
{
"name": "idfRelative",
"name": "espIdf",
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceFolder}"
"autoDetect",
"${cwd}"
],
"pattern": {
"regexp": "^\\.\\.(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
{
"name": "idfAbsolute",
"owner": "cpp",
"fileLocation": "absolute",
"pattern": {
"regexp": "^[^\\.](.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"regexp": "^(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
Expand Down
6 changes: 3 additions & 3 deletions src/build/buildTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class BuildTask {
vscode.TaskScope.Workspace,
"ESP-IDF Compile",
compileExecution,
["idfRelative", "idfAbsolute"],
["espIdf"],
compilePresentationOptions
);
}
Expand All @@ -204,7 +204,7 @@ export class BuildTask {
vscode.TaskScope.Workspace,
"ESP-IDF Build",
buildExecution,
["idfRelative", "idfAbsolute"],
["espIdf"],
buildPresentationOptions
);
}
Expand Down Expand Up @@ -243,7 +243,7 @@ export class BuildTask {
vscode.TaskScope.Workspace,
"ESP-IDF Write DFU.bin",
writeExecution,
["idfRelative", "idfAbsolute"],
["espIdf"],
buildPresentationOptions
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/customTasks/customTaskProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class CustomTask {
TaskScope.Workspace,
`ESP-IDF ${taskName}`,
customExecution,
["idfRelative", "idfAbsolute"],
["espIdf"],
customTaskPresentationOptions
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/espIdf/size/idfSizeTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class IdfSizeTask {
TaskScope.Workspace,
"ESP-IDF Size",
sizeExecution,
["idfRelative", "idfAbsolute"],
["espIdf"],
sizePresentationOptions
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/flash/flashTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class FlashTask {
vscode.TaskScope.Workspace,
"ESP-IDF Flash",
flashExecution,
["idfRelative", "idfAbsolute"],
["espIdf"],
flashPresentationOptions
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/qemu/mergeFlashBin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export async function mergeFlashBinaries(
TaskScope.Workspace,
"Merge flash binaries",
mergeExecution,
["idfRelative", "idfAbsolute"],
["espIdf"],
mergePresentationOptions
);
await TaskManager.runTasks();
Expand Down

0 comments on commit 660f761

Please sign in to comment.