| { |
| "version": "2.0.0", |
| "tasks": [ |
| { |
| "type": "shell", |
| "label": "Pigweed IDE: Format", |
| "command": "${workspaceFolder}/.pw_ide/python ${workspaceFolder}/pw_ide/py/pw_ide/activate.py -x 'pw format --fix'", |
| "problemMatcher": [] |
| }, |
| { |
| "type": "shell", |
| "label": "Pigweed IDE: Presubmit", |
| "command": "${workspaceFolder}/.pw_ide/python ${workspaceFolder}/pw_ide/py/pw_ide/activate.py -x 'pw presubmit'", |
| "problemMatcher": [] |
| }, |
| |
| { |
| "label": "Pigweed IDE: Set Python Virtual Environment", |
| "command": "${command:python.setInterpreter}", |
| "problemMatcher": [] |
| }, |
| { |
| "label": "Pigweed IDE: Restart Python Language Server", |
| "command": "${command:python.analysis.restartLanguageServer}", |
| "problemMatcher": [] |
| }, |
| { |
| "label": "Pigweed IDE: Restart C++ Language Server", |
| "command": "${command:clangd.restart}", |
| "problemMatcher": [] |
| }, |
| |
| { |
| "type": "shell", |
| "label": "gn gen out", |
| "command": "${workspaceFolder}/.pw_ide/python ${workspaceFolder}/pw_ide/py/pw_ide/activate.py -x 'gn gen out --export-compile-commands'", |
| "problemMatcher": [] |
| }, |
| { |
| "type": "shell", |
| "label": "pw ide cpp --process out/compile_commands.json", |
| "command": "${workspaceFolder}/.pw_ide/python ${workspaceFolder}/pw_ide/py/pw_ide/activate.py -x 'pw ide cpp --process out/compile_commands.json'", |
| "problemMatcher": [] |
| }, |
| { |
| "type": "shell", |
| "label": "pw ide setup", |
| "command": "python3 ${workspaceFolder}/pw_ide/py/pw_ide/activate.py -x 'pw ide setup'", |
| "problemMatcher": [] |
| }, |
| |
| { |
| "label": "Pigweed IDE: Setup", |
| "dependsOrder": "sequence", |
| "dependsOn": [ |
| "pw ide setup", |
| "Pigweed IDE: Set Python Virtual Environment", |
| "Pigweed IDE: Restart C++ Language Server", |
| ], |
| "problemMatcher": [] |
| }, |
| { |
| "label": "Pigweed IDE: Update Compilation Databases", |
| "dependsOrder": "sequence", |
| "dependsOn": [ |
| "gn gen out", |
| "pw ide cpp --process out/compile_commands.json", |
| "Pigweed IDE: Restart C++ Language Server", |
| ], |
| "problemMatcher": [] |
| }, |
| |
| { |
| "type": "shell", |
| "label": "Pigweed IDE: Current C++ Code Analysis Target", |
| "command": "${workspaceFolder}/.pw_ide/python ${workspaceFolder}/pw_ide/py/pw_ide/activate.py -x 'pw ide cpp'", |
| "problemMatcher": [] |
| }, |
| { |
| "type": "shell", |
| "label": "Pigweed IDE: List C++ Code Analysis Targets", |
| "command": "${workspaceFolder}/.pw_ide/python ${workspaceFolder}/pw_ide/py/pw_ide/activate.py -x 'pw ide cpp --list'", |
| "problemMatcher": [] |
| }, |
| { |
| "type": "shell", |
| "label": "Pigweed IDE: Set C++ Code Analysis Target", |
| "command": "${workspaceFolder}/.pw_ide/python ${workspaceFolder}/pw_ide/py/pw_ide/activate.py -x 'pw ide cpp --set ${input:target}'", |
| "problemMatcher": [] |
| } |
| ], |
| |
| "inputs": [ |
| { |
| "id": "target", |
| "type": "promptString", |
| "description": "C++ code analysis target" |
| } |
| ] |
| } |