From 89ff8517fa485707c2ee71d343fc46997b9659aa Mon Sep 17 00:00:00 2001 From: appflowy Date: Thu, 26 May 2022 15:58:13 +0800 Subject: [PATCH] chore: udpate launch task --- frontend/app_flowy/.vscode/launch.json | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/frontend/app_flowy/.vscode/launch.json b/frontend/app_flowy/.vscode/launch.json index b271a1e6a1..e5ea3cdf6f 100644 --- a/frontend/app_flowy/.vscode/launch.json +++ b/frontend/app_flowy/.vscode/launch.json @@ -5,18 +5,30 @@ "version": "0.2.0", "configurations": [ { - "name": "app_flowy", + // This task builds the Rust and Dart code of AppFlowy. + "name": "Build", "request": "launch", "program": "${workspaceRoot}/lib/main.dart", - "type": "dart", "preLaunchTask": "build_flowy_sdk", + "type": "dart", "env": { "RUST_LOG": "debug" }, "cwd": "${workspaceRoot}" }, { - "name": "app_flowy(trace)", + // This task only build the Dart code of AppFlowy. + "name": "Build (Dart)", + "request": "launch", + "program": "${workspaceRoot}/lib/main.dart", + "type": "dart", + "env": { + "RUST_LOG": "debug" + }, + "cwd": "${workspaceRoot}" + }, + { + "name": "Build (trace log)", "request": "launch", "program": "${workspaceRoot}/lib/main.dart", "type": "dart", @@ -27,7 +39,7 @@ "cwd": "${workspaceRoot}" }, { - "name": "app_flowy (profile mode)", + "name": "Build (profile mode)", "request": "launch", "type": "dart", "flutterMode": "profile"