Skip to content

Commit 4b605b6

Browse files
authored
chore: update vscode task (#1790)
1 parent 70e8b2e commit 4b605b6

File tree

5 files changed

+28
-109
lines changed

5 files changed

+28
-109
lines changed

frontend/.vscode/launch.json

Lines changed: 19 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,27 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7-
{
8-
// This task only builds the Dart code of AppFlowy.
9-
"name": "AF-desktop: Build Dart Only",
10-
"request": "launch",
11-
"program": "./lib/main.dart",
12-
"type": "dart",
13-
"env": {
14-
"RUST_LOG": "debug"
15-
},
16-
"cwd": "${workspaceRoot}/app_flowy"
17-
},
187
{
198
// This task builds the Rust and Dart code of AppFlowy.
209
"name": "AF-desktop: Build All",
2110
"request": "launch",
2211
"program": "./lib/main.dart",
2312
"type": "dart",
24-
"preLaunchTask": "AF: build_flowy_sdk",
13+
"preLaunchTask": "AF: Build Appflowy Core",
2514
"env": {
15+
// "RUST_LOG": "trace"
2616
"RUST_LOG": "debug"
2717
},
2818
"cwd": "${workspaceRoot}/app_flowy"
2919
},
3020
{
31-
"name": "AF-desktop: Build All (rustlog: trace)",
21+
// This task only builds the Dart code of AppFlowy.
22+
"name": "AF-desktop: Build Dart Only",
3223
"request": "launch",
3324
"program": "./lib/main.dart",
3425
"type": "dart",
35-
"preLaunchTask": "AF: build_flowy_sdk",
3626
"env": {
37-
"RUST_LOG": "trace"
27+
"RUST_LOG": "debug"
3828
},
3929
"cwd": "${workspaceRoot}/app_flowy"
4030
},
@@ -53,6 +43,20 @@
5343
},
5444
"cwd": "${workspaceRoot}/app_flowy"
5545
},
46+
{
47+
"name": "AF-desktop: Debug Rust",
48+
"request": "attach",
49+
"type": "lldb",
50+
"pid": "${command:pickMyProcess}"
51+
},
52+
// {
53+
// "name": "AF-desktop: profile mode",
54+
// "request": "launch",
55+
// "program": "./lib/main.dart",
56+
// "type": "dart",
57+
// "flutterMode": "profile",
58+
// "cwd": "${workspaceRoot}/app_flowy"
59+
// },
5660
{
5761
// This task builds the Rust and Dart code of AppFlowy for android.
5862
"name": "AF-android: Build All",
@@ -65,17 +69,6 @@
6569
},
6670
"cwd": "${workspaceRoot}/app_flowy"
6771
},
68-
{
69-
"name": "AF-android: Build All (rustlog: trace)",
70-
"request": "launch",
71-
"program": "./lib/main.dart",
72-
"type": "dart",
73-
"preLaunchTask": "AF: build_mobile_sdk",
74-
"env": {
75-
"RUST_LOG": "trace"
76-
},
77-
"cwd": "${workspaceRoot}/app_flowy"
78-
},
7972
{
8073
// This task builds will:
8174
// - call the clean task,
@@ -116,19 +109,5 @@
116109
// "preLaunchTask": "AF: Tauri UI Build",
117110
// "cwd": "${workspaceRoot}/appflowy_tauri/"
118111
// },
119-
{
120-
"name": "AF: Debug Rust",
121-
"request": "attach",
122-
"type": "lldb",
123-
"pid": "${command:pickMyProcess}"
124-
},
125-
{
126-
"name": "AF: app_flowy (profile mode)",
127-
"request": "launch",
128-
"program": "./lib/main.dart",
129-
"type": "dart",
130-
"flutterMode": "profile",
131-
"cwd": "${workspaceRoot}/app_flowy"
132-
},
133112
]
134113
}

frontend/.vscode/tasks.json

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"dependsOn": [
1717
"AF: Dart Clean",
1818
"AF: Flutter Clean",
19-
"AF: build_flowy_sdk",
19+
"AF: Build Appflowy Core",
2020
"AF: Flutter Pub Get",
2121
"AF: Flutter Package Get",
2222
"AF: Generate Language Files",
@@ -34,7 +34,7 @@
3434
"dependsOn": [
3535
"AF: Dart Clean",
3636
"AF: Flutter Clean",
37-
"AF: build_flowy_sdk_for_android",
37+
"AF: Build Appflowy Core_for_android",
3838
"AF: Flutter Pub Get",
3939
"AF: Flutter Package Get",
4040
"AF: Generate Language Files",
@@ -46,7 +46,7 @@
4646
}
4747
},
4848
{
49-
"label": "AF: build_flowy_sdk_for_android",
49+
"label": "AF: Build Appflowy Core_for_android",
5050
"type": "shell",
5151
"command": "cargo make --profile development-android appflowy-core-dev-android",
5252
"group": "build",
@@ -55,37 +55,16 @@
5555
}
5656
},
5757
{
58-
"label": "AF: build_flowy_sdk",
58+
"label": "AF: Build Appflowy Core",
5959
"type": "shell",
60-
"command": "sh ./scripts/build_sdk.sh",
6160
"windows": {
62-
"options": {
63-
"env": {
64-
"FLOWY_DEV_ENV": "Windows"
65-
},
66-
"shell": {
67-
"executable": "cmd.exe",
68-
"args": [
69-
"/d",
70-
"/c",
71-
".\\scripts\\build_sdk.cmd"
72-
]
73-
}
74-
}
61+
"command": "cargo make --profile development-windows appflowy-core-dev"
7562
},
7663
"linux": {
77-
"options": {
78-
"env": {
79-
"FLOWY_DEV_ENV": "Linux"
80-
}
81-
}
64+
"command": "cargo make --profile \"development-linux-$(uname -m)\" appflowy-core-dev"
8265
},
8366
"osx": {
84-
"options": {
85-
"env": {
86-
"FLOWY_DEV_ENV": "macOS"
87-
}
88-
}
67+
"command": "cargo make --profile \"development-mac-$(uname -m)\" appflowy-core-dev"
8968
},
9069
"group": "build",
9170
"options": {
@@ -221,7 +200,7 @@
221200
"options": {
222201
"cwd": "${workspaceFolder}"
223202
},
224-
"problemMatcher": ["$tsc"],
203+
"problemMatcher": ["$tsc"]
225204
},
226205
{
227206
"label": "AF: Tauri Clean + Dev",

frontend/rust-lib/flowy-codegen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ serde_json = "1.0"
1212
flowy-ast = { path = "../flowy-ast"}
1313
quote = "1.0"
1414

15-
cmd_lib = { version = "1", optional = true }
15+
cmd_lib = { version = "1.3.0", optional = true }
1616
protoc-rust = { version = "2", optional = true }
1717
walkdir = { version = "2", optional = true }
1818
similar = { version = "1.2.2", optional = true }

frontend/scripts/build_sdk.cmd

Lines changed: 0 additions & 3 deletions
This file was deleted.

frontend/scripts/build_sdk.sh

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)