vscode-docs
vscode-docs copied to clipboard
Problem Matcher Example image is incorrect
On the page about tasks is the image in the section about Defining a problem matcher wrong.
In the image the whole word prinft has a squiggle, but the error message only has a line:char position.
If I recreate the error with the following task
{
"label": "echo helloWord Error",
"type": "shell",
"command": "echo helloWorld.c:5:3: warning: implicit declaration of function ‘prinft’",
"problemMatcher": {
"owner": "cpp",
"fileLocation": ["relative", "${workspaceFolder}"],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
}
Only the p gets a squiggle.