diff --git a/docs/editor/tasks.md b/docs/editor/tasks.md index 6f98565fc..43128d456 100644 --- a/docs/editor/tasks.md +++ b/docs/editor/tasks.md @@ -639,6 +639,8 @@ A matcher that captures the above warning (and errors) looks like this: "owner": "cpp", // The file name for reported problems is relative to the opened folder. "fileLocation": ["relative", "${workspaceFolder}"], + // The name that will be shown as the source of the problem. + "source": "gcc", // The actual pattern to match problems in the output. "pattern": { // The regular expression. Example to match: helloWorld.c:5:3: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] @@ -672,6 +674,7 @@ Here is a finished `tasks.json` file with the code above (comments removed) wrap "problemMatcher": { "owner": "cpp", "fileLocation": ["relative", "${workspaceFolder}"], + "source": "gcc", "pattern": { "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", "file": 1,