Skip to content

Commit e45b093

Browse files
committed
tasks.json: explicitly set fileLocation in the problemMatcher
1 parent 8b76f8c commit e45b093

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

.vscode/tasks.json

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@
2323
"clear": true,
2424
"showReuseMessage": false
2525
},
26-
"problemMatcher": "$gcc",
26+
"problemMatcher": {
27+
"base": "$gcc",
28+
// without explicitly setting a relative fileLocation the errors on the __problems pane__ are not clickable
29+
"fileLocation": [
30+
"relative",
31+
"${fileDirname}"
32+
]
33+
},
2734
"group": "build"
2835
},
2936
{
@@ -46,7 +53,14 @@
4653
"clear": true,
4754
"showReuseMessage": false
4855
},
49-
"problemMatcher": "$gcc",
56+
"problemMatcher": {
57+
"base": "$gcc",
58+
// without explicitly setting a relative fileLocation the errors on the __problems pane__ are not clickable
59+
"fileLocation": [
60+
"relative",
61+
"${fileDirname}"
62+
]
63+
},
5064
"group": "build"
5165
},
5266
{
@@ -63,7 +77,14 @@
6377
"clear": true,
6478
"showReuseMessage": false
6579
},
66-
"problemMatcher": "$gcc",
80+
"problemMatcher": {
81+
"base": "$gcc",
82+
// without explicitly setting a relative fileLocation the errors on the __problems pane__ are not clickable
83+
"fileLocation": [
84+
"relative",
85+
"${workspaceFolder}/${config:c_project.dir}"
86+
]
87+
},
6788
"group": "build"
6889
},
6990

0 commit comments

Comments
 (0)