From cd9e250d204e5154efae0d3d130eae3f103aad2e Mon Sep 17 00:00:00 2001 From: wolvever Date: Wed, 21 Aug 2024 14:02:35 +0800 Subject: [PATCH] Add vscode setting to simplify local vscode develop (#484) * Add vscode setting to simplify local vscode develop * Add golang test discovery --- .env_template | 8 ++++++++ .vscode/launch.json | 15 +++++++++++++++ .vscode/settings.json | 18 ++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 .env_template create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json diff --git a/.env_template b/.env_template new file mode 100644 index 000000000..5c753b05d --- /dev/null +++ b/.env_template @@ -0,0 +1,8 @@ +# rename this file to .env + +APPBUILDER_TOKEN=your-token +APPBUILDER_TOKEN_V2=your-token +BAIDU_VDB_API_KEY=your-token +INSTANCE_ID=your-token +DATASET_ID=your-token +APPBUILDER_TOKEN_DOC_FORMAT=your-token diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..6b76b4fab --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Python Debugger: Current File", + "type": "debugpy", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..d0c8796b5 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,18 @@ +{ + "python.testing.unittestArgs": [ + "-v", + "-s", + "./appbuilder", + "-p", + "test*.py" + ], + "python.testing.unittestEnabled": true, + "python.envFile": "${workspaceFolder}/.env", + "go.testFlags": [ + "-v" + ], + "go.testEnvFile": "${workspaceFolder}/.env", + "go.toolsEnvVars": { + "GOPATH": "${workspaceFolder}/go", + } +} \ No newline at end of file