|
@@ -5,43 +5,36 @@
|
|
"version": "0.2.0",
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
"configurations": [
|
|
{
|
|
{
|
|
- // This task builds the Rust and Dart code of AppFlowy.
|
|
|
|
- "name": "AF: Build All",
|
|
|
|
|
|
+ // This task only builds the Dart code of AppFlowy.
|
|
|
|
+ "name": "AF-desktop: Build Dart Only",
|
|
"request": "launch",
|
|
"request": "launch",
|
|
"program": "./lib/main.dart",
|
|
"program": "./lib/main.dart",
|
|
"type": "dart",
|
|
"type": "dart",
|
|
- "preLaunchTask": "AF: build_flowy_sdk",
|
|
|
|
"env": {
|
|
"env": {
|
|
- "RUST_LOG": "info"
|
|
|
|
|
|
+ "RUST_LOG": "debug"
|
|
},
|
|
},
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- // This task builds the Rust and Dart code of AppFlowy for android.
|
|
|
|
- "name": "AF: Run Android",
|
|
|
|
|
|
+ // This task builds the Rust and Dart code of AppFlowy.
|
|
|
|
+ "name": "AF-desktop: Build All",
|
|
"request": "launch",
|
|
"request": "launch",
|
|
"program": "./lib/main.dart",
|
|
"program": "./lib/main.dart",
|
|
"type": "dart",
|
|
"type": "dart",
|
|
- "preLaunchTask": "AF: build_mobile_sdk",
|
|
|
|
|
|
+ "preLaunchTask": "AF: build_flowy_sdk",
|
|
"env": {
|
|
"env": {
|
|
"RUST_LOG": "info"
|
|
"RUST_LOG": "info"
|
|
},
|
|
},
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- "name": "AF: Debug Rust",
|
|
|
|
- "request": "attach",
|
|
|
|
- "type": "lldb",
|
|
|
|
- "pid": "${command:pickMyProcess}"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- // This task only builds the Dart code of AppFlowy.
|
|
|
|
- "name": "AF: Build Dart Only",
|
|
|
|
|
|
+ "name": "AF-desktop: Build All (rustlog: trace)",
|
|
"request": "launch",
|
|
"request": "launch",
|
|
"program": "./lib/main.dart",
|
|
"program": "./lib/main.dart",
|
|
"type": "dart",
|
|
"type": "dart",
|
|
|
|
+ "preLaunchTask": "AF: build_flowy_sdk",
|
|
"env": {
|
|
"env": {
|
|
- "RUST_LOG": "debug"
|
|
|
|
|
|
+ "RUST_LOG": "trace"
|
|
},
|
|
},
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
|
},
|
|
},
|
|
@@ -50,7 +43,7 @@
|
|
// - call the clean task,
|
|
// - call the clean task,
|
|
// - rebuild all the generated Files (including freeze and language files)
|
|
// - rebuild all the generated Files (including freeze and language files)
|
|
// - rebuild the the Rust and Dart code of AppFlowy.
|
|
// - rebuild the the Rust and Dart code of AppFlowy.
|
|
- "name": "AF: Clean + Rebuild All",
|
|
|
|
|
|
+ "name": "AF-desktop: Clean + Rebuild All",
|
|
"request": "launch",
|
|
"request": "launch",
|
|
"program": "./lib/main.dart",
|
|
"program": "./lib/main.dart",
|
|
"type": "dart",
|
|
"type": "dart",
|
|
@@ -61,42 +54,63 @@
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- // This task builds will:
|
|
|
|
- // - call the clean task,
|
|
|
|
- // - rebuild all the generated Files (including freeze and language files)
|
|
|
|
- // - rebuild the the Rust and Dart code of AppFlowy.
|
|
|
|
- "name": "AF: Clean + Rebuild All (Android)",
|
|
|
|
|
|
+ // This task builds the Rust and Dart code of AppFlowy for android.
|
|
|
|
+ "name": "AF-android: Build All",
|
|
"request": "launch",
|
|
"request": "launch",
|
|
"program": "./lib/main.dart",
|
|
"program": "./lib/main.dart",
|
|
"type": "dart",
|
|
"type": "dart",
|
|
- "preLaunchTask": "AF: Clean + Rebuild All (Android)",
|
|
|
|
|
|
+ "preLaunchTask": "AF: build_mobile_sdk",
|
|
"env": {
|
|
"env": {
|
|
"RUST_LOG": "info"
|
|
"RUST_LOG": "info"
|
|
},
|
|
},
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- "name": "AF: Build All (rustlog: trace)",
|
|
|
|
|
|
+ "name": "AF-android: Build All (rustlog: trace)",
|
|
"request": "launch",
|
|
"request": "launch",
|
|
"program": "./lib/main.dart",
|
|
"program": "./lib/main.dart",
|
|
"type": "dart",
|
|
"type": "dart",
|
|
- "preLaunchTask": "AF: build_flowy_sdk",
|
|
|
|
|
|
+ "preLaunchTask": "AF: build_mobile_sdk",
|
|
"env": {
|
|
"env": {
|
|
"RUST_LOG": "trace"
|
|
"RUST_LOG": "trace"
|
|
},
|
|
},
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- "name": "AF: Build All Android (rustlog: trace)",
|
|
|
|
|
|
+ // This task builds will:
|
|
|
|
+ // - call the clean task,
|
|
|
|
+ // - rebuild all the generated Files (including freeze and language files)
|
|
|
|
+ // - rebuild the the Rust and Dart code of AppFlowy.
|
|
|
|
+ "name": "AF-android: Clean + Rebuild All",
|
|
"request": "launch",
|
|
"request": "launch",
|
|
"program": "./lib/main.dart",
|
|
"program": "./lib/main.dart",
|
|
"type": "dart",
|
|
"type": "dart",
|
|
- "preLaunchTask": "AF: build_mobile_sdk",
|
|
|
|
|
|
+ "preLaunchTask": "AF: Clean + Rebuild All (Android)",
|
|
"env": {
|
|
"env": {
|
|
- "RUST_LOG": "trace"
|
|
|
|
|
|
+ "RUST_LOG": "info"
|
|
},
|
|
},
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ "type": "lldb",
|
|
|
|
+ "request": "launch",
|
|
|
|
+ "name": "AF: Tauri dev",
|
|
|
|
+ "cargo": {
|
|
|
|
+ "args": [
|
|
|
|
+ "build",
|
|
|
|
+ "--manifest-path=./appflowy_tauri/src-tauri/Cargo.toml",
|
|
|
|
+ "--no-default-features"
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ "preLaunchTask": "tauri:dev",
|
|
|
|
+ "cwd": "${workspaceRoot}/appflowy_tauri/"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "name": "AF: Debug Rust",
|
|
|
|
+ "request": "attach",
|
|
|
|
+ "type": "lldb",
|
|
|
|
+ "pid": "${command:pickMyProcess}"
|
|
|
|
+ },
|
|
{
|
|
{
|
|
"name": "AF: app_flowy (profile mode)",
|
|
"name": "AF: app_flowy (profile mode)",
|
|
"request": "launch",
|
|
"request": "launch",
|