From 88b29ae178ee022f3adbe8556a5b078681554030 Mon Sep 17 00:00:00 2001 From: Arnaud Moura Date: Tue, 25 Apr 2023 00:18:57 +0200 Subject: [PATCH] doc: create custom problemMatcher in VSCode (#18047) --- doc/vscode.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/doc/vscode.md b/doc/vscode.md index dcde0e015b..2ed2fe9363 100644 --- a/doc/vscode.md +++ b/doc/vscode.md @@ -127,9 +127,20 @@ with a label named `build`. ], "group": "build", "presentation": { - "reveal": "silent" + "reveal": "never" }, - "problemMatcher": "$gcc" + "problemMatcher": { + "owner": "v", + "fileLocation": ["relative", "${workspaceFolder}"], + "pattern": { + "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", + "file": 1, + "line": 2, + "column": 3, + "severity": 4, + "message": 5 + } + } } ] }