Merge pull request #547 from MikeWallaceDev/fix_tasks_json

fix: Fix the launch configuration and tasks
This commit is contained in:
Nathan.fooo 2022-06-13 08:59:43 +08:00 committed by GitHub
commit fadb476d2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 20 deletions

View File

@ -11,8 +11,8 @@
"program": "./lib/main.dart",
"type": "dart",
"preLaunchTask": "AF: build_flowy_sdk",
"env":{
"RUST_LOG":"info"
"env": {
"RUST_LOG": "info"
},
"cwd": "${workspaceRoot}/app_flowy"
},
@ -20,12 +20,12 @@
// This task only builds the Dart code of AppFlowy.
"name": "AF: Build Dart Only",
"request": "launch",
"program": "${workspaceRoot}/lib/main.dart",
"program": "./lib/main.dart",
"type": "dart",
"env": {
"RUST_LOG": "debug"
},
"cwd": "${workspaceRoot}"
"cwd": "${workspaceRoot}/app_flowy"
},
{
// This task builds will:
@ -37,20 +37,19 @@
"program": "./lib/main.dart",
"type": "dart",
"preLaunchTask": "AF: Clean + Rebuild All",
"env":{
"RUST_LOG":"info"
"env": {
"RUST_LOG": "info"
},
"cwd": "${workspaceRoot}/app_flowy"
},
{
"name": "AF: Build All (rustlog: trace)",
"request": "launch",
"program": "./lib/main.dart",
"type": "dart",
"preLaunchTask": "AF: build_flowy_sdk",
"env":{
"RUST_LOG":"trace"
"env": {
"RUST_LOG": "trace"
},
"cwd": "${workspaceRoot}/app_flowy"
},
@ -61,4 +60,4 @@
"flutterMode": "profile"
},
]
}
}

View File

@ -15,21 +15,16 @@
"dependsOrder": "sequence",
"dependsOn": [
"AF: Clean",
"AF: Flutter Pub",
"AF: Flutter Pub Get",
"AF: Flutter Package Get",
"AF: Generate Language Files",
"AF: Generate Freezed Files",
"AF: build_flowy_sdk"
],
"group": {
"kind": "build",
"isDefault": true,
},
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "AF: build_flowy_sdk",
@ -74,14 +69,14 @@
"type": "shell",
"dependsOrder": "sequence",
"dependsOn": [
"AF: Flutter Pub",
"AF: Flutter Pub Get",
"AF: Flutter Package Get",
"AF: Generate Language Files",
"AF: Generate Freezed Files"
],
"group": {
"kind": "build",
"isDefault": true,
"isDefault": true
},
"presentation": {
"reveal": "always",
@ -89,7 +84,7 @@
}
},
{
"label": "AF: Flutter Pub",
"label": "AF: Flutter Pub Get",
"type": "shell",
"command": "flutter pub get",
"options": {
@ -167,4 +162,4 @@
"detail": "app_flowy"
}
]
}
}