From 792b87a3a56cc07925f92bf0a774bb2d06aeb0d2 Mon Sep 17 00:00:00 2001 From: yi_Xu Date: Sun, 24 Jul 2022 10:06:34 +0800 Subject: [PATCH] fix: update `problemMatcher` Ref: electron-vite/electron-vite-boilerplate#27 --- .vscode/tasks.json | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index ca00c2b..a1bf353 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -8,7 +8,23 @@ "type": "shell", "command": "node .vscode/.debug.script.mjs", "isBackground": true, - "problemMatcher": [] + "problemMatcher": { + "owner": "typescript", + "fileLocation": "relative", + "pattern": { + "regexp": "^([a-zA-Z]\\:\/?([\\w\\-]\/?)+\\.\\w+):(\\d+):(\\d+): (ERROR|WARNING)\\: (.*)$", + "file": 1, + "line": 3, + "column": 4, + "code": 5, + "message": 6 + }, + "background": { + "activeOnStart": true, + "beginsPattern": "^.*building for development.*$", + "endsPattern": "built in [0-9]*ms.*$", + } + } } ] }