From 2393fa97543322a265c1c181f291a2afee817b52 Mon Sep 17 00:00:00 2001 From: Dirk Doesburg Date: Wed, 13 Mar 2024 19:22:55 +0100 Subject: [PATCH] Update VSCode configs --- .vscode/launch.json | 12 ++++++++++-- .vscode/settings.json | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 0051618c7..80fbbae64 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -3,7 +3,7 @@ "configurations": [ { "name": "Django: manage.py runserver", - "type": "python", + "type": "debugpy", "request": "launch", "program": "${workspaceFolder}/website/manage.py", "args": [ @@ -14,17 +14,25 @@ }, { "name": "Django: manage.py test", - "type": "python", + "type": "debugpy", "request": "launch", "program": "${workspaceFolder}/website/manage.py", "args": [ "test", "--noinput", "--buffer", + "${input:tests}", ], "cwd": "${workspaceFolder}/website", "justMyCode": false, "django": true, } + ], + "inputs": [ + { + "id": "tests", + "type": "promptString", + "description": "An optional dotted path to select tests. E.g.: \"registrations.tests.test_forms\"", + } ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 4e3720c6e..619137ad9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -29,7 +29,7 @@ "editor.defaultFormatter": "ms-python.black-formatter", "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.organizeImports": true + "source.organizeImports": "explicit" }, "editor.formatOnType": true, },