From a2e0724dce5bc352262c559cf91eab65785ed134 Mon Sep 17 00:00:00 2001 From: Russell Davis <551404+russelldavis@users.noreply.github.com> Date: Mon, 22 May 2023 17:07:59 -0700 Subject: [PATCH] Run VSCode Build task as a single task to fix problems pane conflicts Workaround for #119824 --- .vscode/tasks.json | 45 ++++++++++++++++++++++++++++++++------------- 1 file changed, 32 insertions(+), 13 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 1a6554bec658e..d1022bb8b2e79 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -59,15 +59,31 @@ }, { "label": "VS Code - Build", - "dependsOn": [ - "Core - Build", - "Ext - Build" - ], - "group": { - "kind": "build", - "isDefault": true + "type": "npm", + "script": "watchd", + "isBackground": true, + "presentation": { + "reveal": "never", + "group": "buildWatchers", + "close": false }, - "problemMatcher": [] + "problemMatcher": { + "owner": "typescript", + "applyTo": "closedDocuments", + "fileLocation": [ + "absolute" + ], + "pattern": { + "regexp": "Error: ([^(]+)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\): (.*)$", + "file": 1, + "location": 2, + "message": 3 + }, + "background": { + "beginsPattern": "Starting compilation", + "endsPattern": "Finished compilation" + } + } }, { "type": "npm", @@ -94,13 +110,16 @@ "problemMatcher": "$tsc" }, { + "type": "npm", + "script": "kill-watchd", "label": "Kill VS Code - Build", - "dependsOn": [ - "Kill Core - Build", - "Kill Ext - Build" - ], "group": "build", - "problemMatcher": [] + "presentation": { + "reveal": "never", + "group": "buildKillers", + "close": true + }, + "problemMatcher": "$tsc" }, { "label": "Restart VS Code - Build",