Add vscode task to Generate files (#305)

This commit is contained in:
Jesse Hills 2022-11-15 15:26:51 +13:00 committed by GitHub
parent fa8d076e4f
commit 949563c6f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 2 deletions

View File

@ -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"
}
}
}
}

3
.gitignore vendored
View File

@ -81,7 +81,8 @@ share/*
ctags.tmp
# Visual Studio Code
.vscode
.vscode/
!.vscode/tasks.json
# Built docs
docs/build

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

@ -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": []
}
]
}