1
mirror of https://github.com/flipperdevices/flipperzero-firmware.git synced 2025-12-12 12:51:22 +04:00

ufbt: fixes for generated vscode project (#3547)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
hedger
2024-03-29 05:47:43 +04:00
committed by GitHub
parent 74cda02368
commit 538422e2a9
3 changed files with 12 additions and 16 deletions

View File

@@ -14,7 +14,7 @@
"*.scons": "python",
"SConscript": "python",
"SConstruct": "python",
"*.fam": "python",
"*.fam": "python"
},
"clangd.arguments": [
// We might be able to tighten this a bit more to only include the correct toolchain.

View File

@@ -393,7 +393,9 @@ for template_file in project_template_dir.Dir(".vscode").glob("*"):
),
"@UFBT_APP_DIR@": PosixPathWrapper.fix_path(original_app_dir.abspath),
"@UFBT_ROOT_DIR@": PosixPathWrapper.fix_path(Dir("#").abspath),
"@UFBT_DEBUG_DIR@": dist_env.subst("FBT_DEBUG_DIR"),
"@UFBT_DEBUG_DIR@": PosixPathWrapper.fix_path(
dist_env.subst("$FBT_DEBUG_DIR")
),
"@UFBT_DEBUG_ELF_DIR@": PosixPathWrapper.fix_path(
dist_env["FBT_FAP_DEBUG_ELF_ROOT"].abspath
),

View File

@@ -31,29 +31,23 @@
"command": "ufbt -c"
},
{
"label": "Flash FW (ST-Link)",
"label": "Flash FW (SWD)",
"group": "build",
"type": "shell",
"command": "ufbt FORCE=1 flash"
},
{
"label": "Flash FW (blackmagic)",
"group": "build",
"type": "shell",
"command": "ufbt flash_blackmagic"
},
{
"label": "Flash FW (JLink)",
"group": "build",
"type": "shell",
"command": "ufbt FORCE=1 jflash"
},
{
"label": "Flash FW (USB, with resources)",
"group": "build",
"type": "shell",
"command": "ufbt FORCE=1 flash_usb"
},
{
"label": "Open Flipper CLI session",
"group": "build",
"type": "shell",
"command": "ufbt cli"
},
{
"label": "Update uFBT SDK",
"group": "build",
@@ -61,7 +55,7 @@
"command": "ufbt update"
},
{
"label": "Update VSCode config for current SDK",
"label": "Update VSCode config",
"group": "build",
"type": "shell",
"command": "ufbt vscode_dist"