Skip to content

Commit b59af57

Browse files
Contribute problem matcher (#24114)
Resolves: #3828 Breaking #23953 down into two PR 1. problem matcher --> make sure to cover case where there is invalid strings printed before the Error (e.g. NameError or ValueError) 2. Whether we will replace 'Run In Terminal by contributing task with the problem matcher attached. --------- Co-authored-by: Karthik Nadig <[email protected]>
1 parent 144ecf6 commit b59af57

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

package.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,30 @@
8080
"browser": "./dist/extension.browser.js",
8181
"l10n": "./l10n",
8282
"contributes": {
83+
"problemMatchers":
84+
[
85+
{
86+
"name": "python",
87+
"owner": "python",
88+
"source": "python",
89+
"fileLocation": "autoDetect",
90+
"pattern": [
91+
{
92+
"regexp": "^.*File \\\"([^\\\"]|.*)\\\", line (\\d+).*",
93+
"file": 1,
94+
"line": 2
95+
},
96+
{
97+
"regexp": "^\\s*(.*)\\s*$"
98+
99+
},
100+
{
101+
"regexp": "^\\s*(.*Error.*)$",
102+
"message": 1
103+
}
104+
]
105+
}
106+
],
83107
"walkthroughs": [
84108
{
85109
"id": "pythonWelcome",

0 commit comments

Comments
 (0)