From dcf5a80ef7ac927d21e2a708bb39263c4889e728 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Thu, 5 Oct 2023 14:15:25 +0200 Subject: [PATCH] Updated VS Code debug configurations --- .vscode/launch.json | 33 +++++++++++++++++++++++++++++++++ .vscode/tasks.json | 6 ++++++ 2 files changed, 39 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index 7a34ada8d..9edc3fe46 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -12,6 +12,39 @@ "url": "http://localhost:8000/mkdocs-material/", "webRoot": "${workspaceFolder}", "smartStep": true + }, + { + "name": "MkDocs", + "type": "python", + "request": "launch", + "preLaunchTask": "Start and watch for changes", + "program": "venv/bin/mkdocs", + "args": ["build"], + "env": { + "PYTHONPATH": "." + } + }, + { + "name": "MkDocs server", + "type": "python", + "request": "launch", + "preLaunchTask": "Start and watch for changes", + "program": "venv/bin/mkdocs", + "args": ["serve", "--watch-theme"], + "env": { + "PYTHONPATH": "." + } + }, + { + "name": "MkDocs server (dirty)", + "type": "python", + "request": "launch", + "preLaunchTask": "Start and watch for changes", + "program": "venv/bin/mkdocs", + "args": ["serve", "--watch-theme", "--dirtyreload"], + "env": { + "PYTHONPATH": "." + } } ] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 49179e19d..82c7cdddd 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -21,6 +21,12 @@ "group": "build", "presentation": { "reveal": "silent" + }, + "problemMatcher": { + "background": { + "beginsPattern": "material\/templates\/redirect", + "endsPattern": "." + } } } ]