Skip to content

Commit

Permalink
Contribute problem matcher (#24114)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
anthonykim1 and karthiknadig committed Sep 17, 2024
1 parent 144ecf6 commit b59af57
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,30 @@
"browser": "./dist/extension.browser.js",
"l10n": "./l10n",
"contributes": {
"problemMatchers":
[
{
"name": "python",
"owner": "python",
"source": "python",
"fileLocation": "autoDetect",
"pattern": [
{
"regexp": "^.*File \\\"([^\\\"]|.*)\\\", line (\\d+).*",
"file": 1,
"line": 2
},
{
"regexp": "^\\s*(.*)\\s*$"

},
{
"regexp": "^\\s*(.*Error.*)$",
"message": 1
}
]
}
],
"walkthroughs": [
{
"id": "pythonWelcome",
Expand Down

0 comments on commit b59af57

Please sign in to comment.