tweak gitignore and vscode config (#1433)

* tweak gitignore and vscode config

* restore settings

---------

Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
VillagerTom
2025-10-03 11:48:28 +08:00
committed by GitHub
parent bdbd6cd377
commit 94760a4136
3 changed files with 63 additions and 10 deletions

7
.gitignore vendored
View File

@@ -19,7 +19,7 @@ migrate_working_dir/
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/
.vscode/
# Flutter repo-specific
/bin/cache/
@@ -134,7 +134,12 @@ app.*.symbols
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
!/dev/ci/**/Gemfile.lock
!.vscode/settings.json
!.vscode/launch.json
!.vscode/tasks.json
/lib/build_config.dart
devtools_options.yaml
# FVM Version Cache
.fvm/

41
.vscode/launch.json vendored
View File

@@ -5,21 +5,44 @@
"version": "0.2.0",
"configurations": [
{
"name": "piliplus",
"request": "launch",
"type": "dart"
},
{
"name": "piliplus (profile mode)",
"name": "Debug",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
"preLaunchTask": "Update build_config"
},
{
"name": "piliplus (release mode)",
"name": "Profile",
"request": "launch",
"type": "dart",
"flutterMode": "release"
"flutterMode": "profile",
"preLaunchTask": "Update build_config"
},
{
"name": "Release",
"request": "launch",
"type": "dart",
"flutterMode": "release",
"preLaunchTask": "Update build_config"
},
{
"name": "Debug (FVM)",
"request": "launch",
"type": "dart",
"preLaunchTask": "Update build_config (FVM)"
},
{
"name": "Profile (FVM)",
"request": "launch",
"type": "dart",
"flutterMode": "profile",
"preLaunchTask": "Update build_config (FVM)"
},
{
"name": "Release (FVM)",
"request": "launch",
"type": "dart",
"flutterMode": "release",
"preLaunchTask": "Update build_config (FVM)"
}
]
}

25
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,25 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Update build_config",
"command": "dart lib/scripts/build.dart",
"type": "shell",
"problemMatcher": [],
"presentation": {
"reveal": "always"
},
"group": "build"
},
{
"label": "Update build_config (FVM)",
"command": "fvm dart lib/scripts/build.dart",
"type": "shell",
"problemMatcher": [],
"presentation": {
"reveal": "always"
},
"group": "build"
}
]
}