From ebe6236aac71c8aa94be956f5253b8c4307f09d4 Mon Sep 17 00:00:00 2001 From: Kuojian Lu Date: Wed, 16 Feb 2022 10:34:21 +0800 Subject: [PATCH] chore(localdebug): use latest launch and task (#274) * chore(localdebug): use latest launch and task - remove launch configuration preLaunchTask: Start Frontend/Backend/Bot - move Start Frontend/Backend/Bot to compound preLaunchTask - update the endsPattern of bot problem matcher and show the bot problem matcher details in tasks.json - rename launch configurations --- NPM-search-connector-M365/.vscode/launch.json | 15 ++++---- NPM-search-connector-M365/.vscode/tasks.json | 27 ++++++++++++-- bot-sso/.vscode/launch.json | 15 ++++---- bot-sso/.vscode/tasks.json | 27 ++++++++++++-- faq-plus/.vscode/launch.json | 15 ++++---- faq-plus/.vscode/tasks.json | 27 ++++++++++++-- .../.vscode/launch.json | 14 ++++---- .../.vscode/tasks.json | 11 ++++-- hello-world-bot/.vscode/launch.json | 15 ++++---- hello-world-bot/.vscode/tasks.json | 27 ++++++++++++-- .../.vscode/launch.json | 25 ++++++------- .../.vscode/tasks.json | 12 +++++-- hello-world-tab/.vscode/launch.json | 14 ++++---- hello-world-tab/.vscode/tasks.json | 11 ++++-- share-now/.vscode/launch.json | 36 +++++++++---------- share-now/.vscode/tasks.json | 29 +++++++++++++-- .../.vscode/launch.json | 25 ++++++------- .../.vscode/tasks.json | 12 +++++-- .../.vscode/launch.json | 25 ++++++------- .../.vscode/tasks.json | 12 +++++-- 20 files changed, 259 insertions(+), 135 deletions(-) diff --git a/NPM-search-connector-M365/.vscode/launch.json b/NPM-search-connector-M365/.vscode/launch.json index bed45762..e2182ed5 100644 --- a/NPM-search-connector-M365/.vscode/launch.json +++ b/NPM-search-connector-M365/.vscode/launch.json @@ -27,7 +27,7 @@ "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", "cascadeTerminateToConfigurations": [ - "Start and Attach to Bot" + "Attach to Bot" ], "presentation": { "group": "all", @@ -40,7 +40,7 @@ "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", "cascadeTerminateToConfigurations": [ - "Start and Attach to Bot" + "Attach to Bot" ], "presentation": { "group": "all", @@ -48,12 +48,11 @@ } }, { - "name": "Start and Attach to Bot", + "name": "Attach to Bot", "type": "pwa-node", "request": "attach", "port": 9239, "restart": true, - "preLaunchTask": "Start Bot", "presentation": { "group": "all", "hidden": true @@ -65,9 +64,9 @@ "name": "Debug (Edge)", "configurations": [ "Launch Bot (Edge)", - "Start and Attach to Bot" + "Attach to Bot" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 1 @@ -78,9 +77,9 @@ "name": "Debug (Chrome)", "configurations": [ "Launch Bot (Chrome)", - "Start and Attach to Bot" + "Attach to Bot" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 2 diff --git a/NPM-search-connector-M365/.vscode/tasks.json b/NPM-search-connector-M365/.vscode/tasks.json index ebd0dbf5..efb1ec36 100644 --- a/NPM-search-connector-M365/.vscode/tasks.json +++ b/NPM-search-connector-M365/.vscode/tasks.json @@ -2,11 +2,12 @@ "version": "2.0.0", "tasks": [ { - "label": "Pre Debug Check", + "label": "Pre Debug Check & Start All", "dependsOn": [ "validate local prerequisites", "start ngrok", - "prepare local environment" + "prepare local environment", + "Start All" ], "dependsOrder": "sequence" }, @@ -30,12 +31,32 @@ "reveal": "never" } }, + { + "label": "Start All", + "dependsOn": [ + "Start Bot" + ] + }, { "label": "Start Bot", "type": "shell", "command": "npm run dev:teamsfx", "isBackground": true, - "problemMatcher": "$teamsfx-bot-watch", + "problemMatcher": { + "pattern": [ + { + "regexp": "^.*$", + "file": 0, + "location": 1, + "message": 2 + } + ], + "background": { + "activeOnStart": true, + "beginsPattern": "[nodemon] starting", + "endsPattern": "restify listening to|Bot/ME service listening at|[nodemon] app crashed" + } + }, "options": { "cwd": "${workspaceFolder}/bot" } diff --git a/bot-sso/.vscode/launch.json b/bot-sso/.vscode/launch.json index bed45762..e2182ed5 100644 --- a/bot-sso/.vscode/launch.json +++ b/bot-sso/.vscode/launch.json @@ -27,7 +27,7 @@ "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", "cascadeTerminateToConfigurations": [ - "Start and Attach to Bot" + "Attach to Bot" ], "presentation": { "group": "all", @@ -40,7 +40,7 @@ "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", "cascadeTerminateToConfigurations": [ - "Start and Attach to Bot" + "Attach to Bot" ], "presentation": { "group": "all", @@ -48,12 +48,11 @@ } }, { - "name": "Start and Attach to Bot", + "name": "Attach to Bot", "type": "pwa-node", "request": "attach", "port": 9239, "restart": true, - "preLaunchTask": "Start Bot", "presentation": { "group": "all", "hidden": true @@ -65,9 +64,9 @@ "name": "Debug (Edge)", "configurations": [ "Launch Bot (Edge)", - "Start and Attach to Bot" + "Attach to Bot" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 1 @@ -78,9 +77,9 @@ "name": "Debug (Chrome)", "configurations": [ "Launch Bot (Chrome)", - "Start and Attach to Bot" + "Attach to Bot" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 2 diff --git a/bot-sso/.vscode/tasks.json b/bot-sso/.vscode/tasks.json index ebd0dbf5..efb1ec36 100644 --- a/bot-sso/.vscode/tasks.json +++ b/bot-sso/.vscode/tasks.json @@ -2,11 +2,12 @@ "version": "2.0.0", "tasks": [ { - "label": "Pre Debug Check", + "label": "Pre Debug Check & Start All", "dependsOn": [ "validate local prerequisites", "start ngrok", - "prepare local environment" + "prepare local environment", + "Start All" ], "dependsOrder": "sequence" }, @@ -30,12 +31,32 @@ "reveal": "never" } }, + { + "label": "Start All", + "dependsOn": [ + "Start Bot" + ] + }, { "label": "Start Bot", "type": "shell", "command": "npm run dev:teamsfx", "isBackground": true, - "problemMatcher": "$teamsfx-bot-watch", + "problemMatcher": { + "pattern": [ + { + "regexp": "^.*$", + "file": 0, + "location": 1, + "message": 2 + } + ], + "background": { + "activeOnStart": true, + "beginsPattern": "[nodemon] starting", + "endsPattern": "restify listening to|Bot/ME service listening at|[nodemon] app crashed" + } + }, "options": { "cwd": "${workspaceFolder}/bot" } diff --git a/faq-plus/.vscode/launch.json b/faq-plus/.vscode/launch.json index bed45762..e2182ed5 100644 --- a/faq-plus/.vscode/launch.json +++ b/faq-plus/.vscode/launch.json @@ -27,7 +27,7 @@ "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", "cascadeTerminateToConfigurations": [ - "Start and Attach to Bot" + "Attach to Bot" ], "presentation": { "group": "all", @@ -40,7 +40,7 @@ "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", "cascadeTerminateToConfigurations": [ - "Start and Attach to Bot" + "Attach to Bot" ], "presentation": { "group": "all", @@ -48,12 +48,11 @@ } }, { - "name": "Start and Attach to Bot", + "name": "Attach to Bot", "type": "pwa-node", "request": "attach", "port": 9239, "restart": true, - "preLaunchTask": "Start Bot", "presentation": { "group": "all", "hidden": true @@ -65,9 +64,9 @@ "name": "Debug (Edge)", "configurations": [ "Launch Bot (Edge)", - "Start and Attach to Bot" + "Attach to Bot" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 1 @@ -78,9 +77,9 @@ "name": "Debug (Chrome)", "configurations": [ "Launch Bot (Chrome)", - "Start and Attach to Bot" + "Attach to Bot" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 2 diff --git a/faq-plus/.vscode/tasks.json b/faq-plus/.vscode/tasks.json index ebd0dbf5..efb1ec36 100644 --- a/faq-plus/.vscode/tasks.json +++ b/faq-plus/.vscode/tasks.json @@ -2,11 +2,12 @@ "version": "2.0.0", "tasks": [ { - "label": "Pre Debug Check", + "label": "Pre Debug Check & Start All", "dependsOn": [ "validate local prerequisites", "start ngrok", - "prepare local environment" + "prepare local environment", + "Start All" ], "dependsOrder": "sequence" }, @@ -30,12 +31,32 @@ "reveal": "never" } }, + { + "label": "Start All", + "dependsOn": [ + "Start Bot" + ] + }, { "label": "Start Bot", "type": "shell", "command": "npm run dev:teamsfx", "isBackground": true, - "problemMatcher": "$teamsfx-bot-watch", + "problemMatcher": { + "pattern": [ + { + "regexp": "^.*$", + "file": 0, + "location": 1, + "message": 2 + } + ], + "background": { + "activeOnStart": true, + "beginsPattern": "[nodemon] starting", + "endsPattern": "restify listening to|Bot/ME service listening at|[nodemon] app crashed" + } + }, "options": { "cwd": "${workspaceFolder}/bot" } diff --git a/graph-toolkit-contact-exporter/.vscode/launch.json b/graph-toolkit-contact-exporter/.vscode/launch.json index e1cf08b2..0c47ddc3 100644 --- a/graph-toolkit-contact-exporter/.vscode/launch.json +++ b/graph-toolkit-contact-exporter/.vscode/launch.json @@ -22,22 +22,20 @@ } }, { - "name": "Start and Attach to Frontend (Edge)", + "name": "Attach to Frontend (Edge)", "type": "pwa-msedge", "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", - "preLaunchTask": "Start Frontend", "presentation": { "group": "all", "hidden": true } }, { - "name": "Start and Attach to Frontend (Chrome)", + "name": "Attach to Frontend (Chrome)", "type": "pwa-chrome", "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", - "preLaunchTask": "Start Frontend", "presentation": { "group": "all", "hidden": true @@ -48,9 +46,9 @@ { "name": "Debug (Edge)", "configurations": [ - "Start and Attach to Frontend (Edge)" + "Attach to Frontend (Edge)" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 1 @@ -60,9 +58,9 @@ { "name": "Debug (Chrome)", "configurations": [ - "Start and Attach to Frontend (Chrome)" + "Attach to Frontend (Chrome)" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 2 diff --git a/graph-toolkit-contact-exporter/.vscode/tasks.json b/graph-toolkit-contact-exporter/.vscode/tasks.json index e81b65a0..65ea88bc 100644 --- a/graph-toolkit-contact-exporter/.vscode/tasks.json +++ b/graph-toolkit-contact-exporter/.vscode/tasks.json @@ -2,10 +2,11 @@ "version": "2.0.0", "tasks": [ { - "label": "Pre Debug Check", + "label": "Pre Debug Check & Start All", "dependsOn": [ "validate local prerequisites", - "prepare local environment" + "prepare local environment", + "Start All" ], "dependsOrder": "sequence" }, @@ -25,6 +26,12 @@ "reveal": "never" } }, + { + "label": "Start All", + "dependsOn": [ + "Start Frontend" + ] + }, { "label": "Start Frontend", "type": "shell", diff --git a/hello-world-bot/.vscode/launch.json b/hello-world-bot/.vscode/launch.json index bed45762..e2182ed5 100644 --- a/hello-world-bot/.vscode/launch.json +++ b/hello-world-bot/.vscode/launch.json @@ -27,7 +27,7 @@ "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", "cascadeTerminateToConfigurations": [ - "Start and Attach to Bot" + "Attach to Bot" ], "presentation": { "group": "all", @@ -40,7 +40,7 @@ "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", "cascadeTerminateToConfigurations": [ - "Start and Attach to Bot" + "Attach to Bot" ], "presentation": { "group": "all", @@ -48,12 +48,11 @@ } }, { - "name": "Start and Attach to Bot", + "name": "Attach to Bot", "type": "pwa-node", "request": "attach", "port": 9239, "restart": true, - "preLaunchTask": "Start Bot", "presentation": { "group": "all", "hidden": true @@ -65,9 +64,9 @@ "name": "Debug (Edge)", "configurations": [ "Launch Bot (Edge)", - "Start and Attach to Bot" + "Attach to Bot" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 1 @@ -78,9 +77,9 @@ "name": "Debug (Chrome)", "configurations": [ "Launch Bot (Chrome)", - "Start and Attach to Bot" + "Attach to Bot" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 2 diff --git a/hello-world-bot/.vscode/tasks.json b/hello-world-bot/.vscode/tasks.json index ebd0dbf5..efb1ec36 100644 --- a/hello-world-bot/.vscode/tasks.json +++ b/hello-world-bot/.vscode/tasks.json @@ -2,11 +2,12 @@ "version": "2.0.0", "tasks": [ { - "label": "Pre Debug Check", + "label": "Pre Debug Check & Start All", "dependsOn": [ "validate local prerequisites", "start ngrok", - "prepare local environment" + "prepare local environment", + "Start All" ], "dependsOrder": "sequence" }, @@ -30,12 +31,32 @@ "reveal": "never" } }, + { + "label": "Start All", + "dependsOn": [ + "Start Bot" + ] + }, { "label": "Start Bot", "type": "shell", "command": "npm run dev:teamsfx", "isBackground": true, - "problemMatcher": "$teamsfx-bot-watch", + "problemMatcher": { + "pattern": [ + { + "regexp": "^.*$", + "file": 0, + "location": 1, + "message": 2 + } + ], + "background": { + "activeOnStart": true, + "beginsPattern": "[nodemon] starting", + "endsPattern": "restify listening to|Bot/ME service listening at|[nodemon] app crashed" + } + }, "options": { "cwd": "${workspaceFolder}/bot" } diff --git a/hello-world-tab-with-backend/.vscode/launch.json b/hello-world-tab-with-backend/.vscode/launch.json index 0d82125a..7448a504 100644 --- a/hello-world-tab-with-backend/.vscode/launch.json +++ b/hello-world-tab-with-backend/.vscode/launch.json @@ -22,13 +22,12 @@ } }, { - "name": "Start and Attach to Frontend (Edge)", + "name": "Attach to Frontend (Edge)", "type": "pwa-msedge", "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", - "preLaunchTask": "Start Frontend", "cascadeTerminateToConfigurations": [ - "Start and Attach to Backend" + "Attach to Backend" ], "presentation": { "group": "all", @@ -36,13 +35,12 @@ } }, { - "name": "Start and Attach to Frontend (Chrome)", + "name": "Attach to Frontend (Chrome)", "type": "pwa-chrome", "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", - "preLaunchTask": "Start Frontend", "cascadeTerminateToConfigurations": [ - "Start and Attach to Backend" + "Attach to Backend" ], "presentation": { "group": "all", @@ -50,12 +48,11 @@ } }, { - "name": "Start and Attach to Backend", + "name": "Attach to Backend", "type": "pwa-node", "request": "attach", "port": 9229, "restart": true, - "preLaunchTask": "Start Backend", "presentation": { "group": "all", "hidden": true @@ -67,10 +64,10 @@ { "name": "Debug (Edge)", "configurations": [ - "Start and Attach to Frontend (Edge)", - "Start and Attach to Backend" + "Attach to Frontend (Edge)", + "Attach to Backend" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 1 @@ -80,10 +77,10 @@ { "name": "Debug (Chrome)", "configurations": [ - "Start and Attach to Frontend (Chrome)", - "Start and Attach to Backend" + "Attach to Frontend (Chrome)", + "Attach to Backend" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 2 diff --git a/hello-world-tab-with-backend/.vscode/tasks.json b/hello-world-tab-with-backend/.vscode/tasks.json index b59dc479..c0792e42 100644 --- a/hello-world-tab-with-backend/.vscode/tasks.json +++ b/hello-world-tab-with-backend/.vscode/tasks.json @@ -2,10 +2,11 @@ "version": "2.0.0", "tasks": [ { - "label": "Pre Debug Check", + "label": "Pre Debug Check & Start All", "dependsOn": [ "validate local prerequisites", - "prepare local environment" + "prepare local environment", + "Start All" ], "dependsOrder": "sequence" }, @@ -25,6 +26,13 @@ "reveal": "never" } }, + { + "label": "Start All", + "dependsOn": [ + "Start Frontend", + "Start Backend" + ] + }, { "label": "Start Frontend", "type": "shell", diff --git a/hello-world-tab/.vscode/launch.json b/hello-world-tab/.vscode/launch.json index e1cf08b2..0c47ddc3 100644 --- a/hello-world-tab/.vscode/launch.json +++ b/hello-world-tab/.vscode/launch.json @@ -22,22 +22,20 @@ } }, { - "name": "Start and Attach to Frontend (Edge)", + "name": "Attach to Frontend (Edge)", "type": "pwa-msedge", "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", - "preLaunchTask": "Start Frontend", "presentation": { "group": "all", "hidden": true } }, { - "name": "Start and Attach to Frontend (Chrome)", + "name": "Attach to Frontend (Chrome)", "type": "pwa-chrome", "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", - "preLaunchTask": "Start Frontend", "presentation": { "group": "all", "hidden": true @@ -48,9 +46,9 @@ { "name": "Debug (Edge)", "configurations": [ - "Start and Attach to Frontend (Edge)" + "Attach to Frontend (Edge)" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 1 @@ -60,9 +58,9 @@ { "name": "Debug (Chrome)", "configurations": [ - "Start and Attach to Frontend (Chrome)" + "Attach to Frontend (Chrome)" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 2 diff --git a/hello-world-tab/.vscode/tasks.json b/hello-world-tab/.vscode/tasks.json index e81b65a0..65ea88bc 100644 --- a/hello-world-tab/.vscode/tasks.json +++ b/hello-world-tab/.vscode/tasks.json @@ -2,10 +2,11 @@ "version": "2.0.0", "tasks": [ { - "label": "Pre Debug Check", + "label": "Pre Debug Check & Start All", "dependsOn": [ "validate local prerequisites", - "prepare local environment" + "prepare local environment", + "Start All" ], "dependsOrder": "sequence" }, @@ -25,6 +26,12 @@ "reveal": "never" } }, + { + "label": "Start All", + "dependsOn": [ + "Start Frontend" + ] + }, { "label": "Start Frontend", "type": "shell", diff --git a/share-now/.vscode/launch.json b/share-now/.vscode/launch.json index 9be571a8..399f91b5 100644 --- a/share-now/.vscode/launch.json +++ b/share-now/.vscode/launch.json @@ -22,14 +22,13 @@ } }, { - "name": "Start and Attach to Frontend (Edge)", + "name": "Attach to Frontend (Edge)", "type": "pwa-msedge", "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", - "preLaunchTask": "Start Frontend", "cascadeTerminateToConfigurations": [ - "Start and Attach to Bot", - "Start and Attach to Backend" + "Attach to Bot", + "Attach to Backend" ], "presentation": { "group": "all", @@ -37,14 +36,13 @@ } }, { - "name": "Start and Attach to Frontend (Chrome)", + "name": "Attach to Frontend (Chrome)", "type": "pwa-chrome", "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", - "preLaunchTask": "Start Frontend", "cascadeTerminateToConfigurations": [ - "Start and Attach to Bot", - "Start and Attach to Backend" + "Attach to Bot", + "Attach to Backend" ], "presentation": { "group": "all", @@ -52,12 +50,11 @@ } }, { - "name": "Start and Attach to Bot", + "name": "Attach to Bot", "type": "pwa-node", "request": "attach", "port": 9239, "restart": true, - "preLaunchTask": "Start Bot", "presentation": { "group": "all", "hidden": true @@ -65,12 +62,11 @@ "internalConsoleOptions": "neverOpen" }, { - "name": "Start and Attach to Backend", + "name": "Attach to Backend", "type": "pwa-node", "request": "attach", "port": 9229, "restart": true, - "preLaunchTask": "Start Backend", "presentation": { "group": "all", "hidden": true @@ -82,11 +78,11 @@ { "name": "Debug (Edge)", "configurations": [ - "Start and Attach to Frontend (Edge)", - "Start and Attach to Bot", - "Start and Attach to Backend" + "Attach to Frontend (Edge)", + "Attach to Bot", + "Attach to Backend" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 1 @@ -96,11 +92,11 @@ { "name": "Debug (Chrome)", "configurations": [ - "Start and Attach to Frontend (Chrome)", - "Start and Attach to Bot", - "Start and Attach to Backend" + "Attach to Frontend (Chrome)", + "Attach to Bot", + "Attach to Backend" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 2 diff --git a/share-now/.vscode/tasks.json b/share-now/.vscode/tasks.json index adbdce35..f5bffab9 100644 --- a/share-now/.vscode/tasks.json +++ b/share-now/.vscode/tasks.json @@ -2,11 +2,12 @@ "version": "2.0.0", "tasks": [ { - "label": "Pre Debug Check", + "label": "Pre Debug Check & Start All", "dependsOn": [ "validate local prerequisites", "start ngrok", - "prepare local environment" + "prepare local environment", + "Start All" ], "dependsOrder": "sequence" }, @@ -30,6 +31,14 @@ "reveal": "never" } }, + { + "label": "Start All", + "dependsOn": [ + "Start Frontend", + "Start Backend", + "Start Bot" + ] + }, { "label": "Start Frontend", "type": "shell", @@ -75,7 +84,21 @@ "type": "shell", "command": "npm run dev:teamsfx", "isBackground": true, - "problemMatcher": "$teamsfx-bot-watch", + "problemMatcher": { + "pattern": [ + { + "regexp": "^.*$", + "file": 0, + "location": 1, + "message": 2 + } + ], + "background": { + "activeOnStart": true, + "beginsPattern": "[nodemon] starting", + "endsPattern": "restify listening to|Bot/ME service listening at|[nodemon] app crashed" + } + }, "options": { "cwd": "${workspaceFolder}/bot" }, diff --git a/todo-list-with-Azure-backend-M365/.vscode/launch.json b/todo-list-with-Azure-backend-M365/.vscode/launch.json index 0d82125a..7448a504 100644 --- a/todo-list-with-Azure-backend-M365/.vscode/launch.json +++ b/todo-list-with-Azure-backend-M365/.vscode/launch.json @@ -22,13 +22,12 @@ } }, { - "name": "Start and Attach to Frontend (Edge)", + "name": "Attach to Frontend (Edge)", "type": "pwa-msedge", "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", - "preLaunchTask": "Start Frontend", "cascadeTerminateToConfigurations": [ - "Start and Attach to Backend" + "Attach to Backend" ], "presentation": { "group": "all", @@ -36,13 +35,12 @@ } }, { - "name": "Start and Attach to Frontend (Chrome)", + "name": "Attach to Frontend (Chrome)", "type": "pwa-chrome", "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", - "preLaunchTask": "Start Frontend", "cascadeTerminateToConfigurations": [ - "Start and Attach to Backend" + "Attach to Backend" ], "presentation": { "group": "all", @@ -50,12 +48,11 @@ } }, { - "name": "Start and Attach to Backend", + "name": "Attach to Backend", "type": "pwa-node", "request": "attach", "port": 9229, "restart": true, - "preLaunchTask": "Start Backend", "presentation": { "group": "all", "hidden": true @@ -67,10 +64,10 @@ { "name": "Debug (Edge)", "configurations": [ - "Start and Attach to Frontend (Edge)", - "Start and Attach to Backend" + "Attach to Frontend (Edge)", + "Attach to Backend" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 1 @@ -80,10 +77,10 @@ { "name": "Debug (Chrome)", "configurations": [ - "Start and Attach to Frontend (Chrome)", - "Start and Attach to Backend" + "Attach to Frontend (Chrome)", + "Attach to Backend" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 2 diff --git a/todo-list-with-Azure-backend-M365/.vscode/tasks.json b/todo-list-with-Azure-backend-M365/.vscode/tasks.json index 749522ac..da31883b 100644 --- a/todo-list-with-Azure-backend-M365/.vscode/tasks.json +++ b/todo-list-with-Azure-backend-M365/.vscode/tasks.json @@ -2,10 +2,11 @@ "version": "2.0.0", "tasks": [ { - "label": "Pre Debug Check", + "label": "Pre Debug Check & Start All", "dependsOn": [ "validate local prerequisites", - "prepare local environment" + "prepare local environment", + "Start All" ], "dependsOrder": "sequence" }, @@ -25,6 +26,13 @@ "reveal": "never" } }, + { + "label": "Start All", + "dependsOn": [ + "Start Frontend", + "Start Backend" + ] + }, { "label": "Start Frontend", "type": "shell", diff --git a/todo-list-with-Azure-backend/.vscode/launch.json b/todo-list-with-Azure-backend/.vscode/launch.json index d715ba91..ec2c9474 100644 --- a/todo-list-with-Azure-backend/.vscode/launch.json +++ b/todo-list-with-Azure-backend/.vscode/launch.json @@ -22,13 +22,12 @@ } }, { - "name": "Start and Attach to Frontend (Edge)", + "name": "Attach to Frontend (Edge)", "type": "pwa-msedge", "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", - "preLaunchTask": "Start Frontend", "cascadeTerminateToConfigurations": [ - "Start and Attach to Backend" + "Attach to Backend" ], "presentation": { "group": "all", @@ -36,13 +35,12 @@ } }, { - "name": "Start and Attach to Frontend (Chrome)", + "name": "Attach to Frontend (Chrome)", "type": "pwa-chrome", "request": "launch", "url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}", - "preLaunchTask": "Start Frontend", "cascadeTerminateToConfigurations": [ - "Start and Attach to Backend" + "Attach to Backend" ], "presentation": { "group": "all", @@ -50,12 +48,11 @@ } }, { - "name": "Start and Attach to Backend", + "name": "Attach to Backend", "type": "pwa-node", "request": "attach", "port": 9229, "restart": true, - "preLaunchTask": "Start Backend", "presentation": { "group": "all", "hidden": true @@ -67,10 +64,10 @@ { "name": "Debug (Edge)", "configurations": [ - "Start and Attach to Frontend (Edge)", - "Start and Attach to Backend" + "Attach to Frontend (Edge)", + "Attach to Backend" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 1 @@ -80,10 +77,10 @@ { "name": "Debug (Chrome)", "configurations": [ - "Start and Attach to Frontend (Chrome)", - "Start and Attach to Backend" + "Attach to Frontend (Chrome)", + "Attach to Backend" ], - "preLaunchTask": "Pre Debug Check", + "preLaunchTask": "Pre Debug Check & Start All", "presentation": { "group": "all", "order": 2 diff --git a/todo-list-with-Azure-backend/.vscode/tasks.json b/todo-list-with-Azure-backend/.vscode/tasks.json index 4a971e2b..b82f2aa4 100644 --- a/todo-list-with-Azure-backend/.vscode/tasks.json +++ b/todo-list-with-Azure-backend/.vscode/tasks.json @@ -2,10 +2,11 @@ "version": "2.0.0", "tasks": [ { - "label": "Pre Debug Check", + "label": "Pre Debug Check & Start All", "dependsOn": [ "validate local prerequisites", - "prepare local environment" + "prepare local environment", + "Start All" ], "dependsOrder": "sequence" }, @@ -25,6 +26,13 @@ "reveal": "never" } }, + { + "label": "Start All", + "dependsOn": [ + "Start Frontend", + "Start Backend" + ] + }, { "label": "Start Frontend", "type": "shell",