Procházet zdrojové kódy

VSCode: add task 'Serial console' and group task with sequence calling (#2121)

* Add task 'Serial console' and group task with sequence calling
* PR fixes

Co-authored-by: あく <alleteam@gmail.com>
Der Skythe před 3 roky
rodič
revize
1fa4c646e6
1 změnil soubory, kde provedl 33 přidání a 1 odebrání
  1. 33 1
      .vscode/example/tasks.json

+ 33 - 1
.vscode/example/tasks.json

@@ -128,6 +128,38 @@
             "group": "build",
             "type": "shell",
             "command": "./fbt COMPACT=1 DEBUG=0 launch_app APPSRC=${relativeFileDirname}"
+        },
+        {
+            "label": "[Debug] Launch App on Flipper with Serial Console",
+            "dependsOrder": "sequence",
+            "group": "build",
+            "dependsOn": [
+                "[Debug] Launch App on Flipper",
+                "Serial Console"
+            ]
+        },
+        {
+            // Press Ctrl+] to quit
+            "label": "Serial Console",
+            "type": "shell",
+            "command": "./fbt cli",
+            "group": "none",
+            "isBackground": true,
+			"options": {
+                "env": {
+                    "FBT_NO_SYNC": "0"
+                }
+            },
+            "presentation": {
+                "reveal": "always",
+                "revealProblems": "never",
+                "showReuseMessage": false,
+                "panel": "dedicated",
+                "focus": true,
+                "echo": true,
+                "close": true,
+                "group": "Logger"
+            }
         }
     ]
-}
+}