From 949563c6f0646e2b69c1447d6ec24f500b791678 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Tue, 15 Nov 2022 15:26:51 +1300 Subject: [PATCH] Add vscode task to Generate files (#305) --- .devcontainer/devcontainer.json | 3 ++- .gitignore | 3 ++- .vscode/tasks.json | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .vscode/tasks.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1be18e3..9d089cd 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -11,6 +11,7 @@ // protobuf "pbkit.vscode-pbkit" ], + "postCreateCommand": "pip3 install -e .", "settings": { "python.languageServer": "Pylance", "python.pythonPath": "/usr/bin/python3", @@ -34,4 +35,4 @@ "**/.vscode/*.json": "jsonc" } } -} \ No newline at end of file +} diff --git a/.gitignore b/.gitignore index c73bb38..0a9f857 100644 --- a/.gitignore +++ b/.gitignore @@ -81,7 +81,8 @@ share/* ctags.tmp # Visual Studio Code -.vscode +.vscode/ +!.vscode/tasks.json # Built docs docs/build diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..3923f59 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,19 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Generate proto files", + "type": "shell", + "command": "script/gen-protoc", + "group": { + "kind": "build", + "isDefault": true + }, + "presentation": { + "reveal": "never", + "panel": "new" + }, + "problemMatcher": [] + } + ] +}