Last active
October 13, 2025 12:21
-
-
Save Barrixar/d624ebe99c8ec4f4169c8fcd10a66773 to your computer and use it in GitHub Desktop.
Per-Extension tasks.json fix for "Error: Invalid problemMatcher reference: $esbuild-watch"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "problemMatchers": [ | |
| { | |
| "name": "esbuild", | |
| "label": "esbuild problem matcher", | |
| "applyTo": "allDocuments", | |
| "source": "esbuild", | |
| "fileLocation": "relative", | |
| "pattern": [ | |
| { | |
| "regexp": "^\\S \\[([A-Z]+)\\] (.+)$", | |
| "severity": 1, | |
| "message": 2 | |
| }, | |
| { | |
| "regexp": "^\\s*(.+?):([0-9]+)(?::([0-9]+))?:?(?:\\s.*)?$", | |
| "file": 1, | |
| "line": 2, | |
| "column": 3, | |
| "loop": true | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "esbuild-watch", | |
| "base": "$esbuild", | |
| "label": "esbuild --watch problem matcher", | |
| "applyTo": "allDocuments", | |
| "source": "esbuild", | |
| "fileLocation": "relative", | |
| "background": { | |
| "activeOnStart": true, | |
| "beginsPattern": { | |
| "regexp": "> \\[watch\\] build started" | |
| }, | |
| "endsPattern": { | |
| "regexp": "> \\[watch\\] build finished" | |
| } | |
| } | |
| } | |
| ], |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the extension approach, while microsoft/vscode#271088 would be the VSCode native approach. However, this gist can be useful to some, should the PR not (yet) get merged.