From 72ce819505f88d5a46b8b78e071f8f58ef1f2d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sun, 30 Jul 2023 18:01:41 +0900 Subject: [PATCH] add launch.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- .vscode/launch.json | 22 ++++++++++++++++++++++ .vscode/tasks.json | 10 ++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..dbb6544 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,22 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Python: Build", + "type": "python", + "request": "launch", + "program": "tools/build.py", + "console": "integratedTerminal", + "justMyCode": false + }, + { + "name": "Python: Test OpenAPI Serialize", + "type": "python", + "request": "launch", + "program": "test/python/test_serialize.py", + "console": "integratedTerminal", + "justMyCode": false, + "preLaunchTask": "build" + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..5edb68e --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,10 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "type": "shell", + "command": "python3 tools/build.py && java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python && python3 -m pip install ./python_generated" + } + ] +}