From 34aad073823097b473e79a479f1600679faf224a Mon Sep 17 00:00:00 2001 From: squidfunk Date: Thu, 5 Oct 2023 15:44:24 +0200 Subject: [PATCH] Fixed debug launch configurations --- .vscode/launch.json | 15 +++++++++++++++ .vscode/tasks.json | 10 +++++++++- tools/build/transform/index.ts | 1 - 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 9edc3fe46..639e38390 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,8 +9,13 @@ "--disable-features=Translate", "--incognito" ], + "preLaunchTask": "Start and watch for changes", "url": "http://localhost:8000/mkdocs-material/", "webRoot": "${workspaceFolder}", + "sourceMaps": true, + "sourceMapPathOverrides": { + "*": "${workspaceFolder}/*" + }, "smartStep": true }, { @@ -46,5 +51,15 @@ "PYTHONPATH": "." } } + ], + "compounds": [ + { + "name": "Application + MkDocs server", + "configurations": ["Application", "MkDocs server"] + }, + { + "name": "Application + MkDocs server (dirty)", + "configurations": ["Application", "MkDocs server (dirty)"] + } ] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 82c7cdddd..6697f27b0 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -23,8 +23,16 @@ "reveal": "silent" }, "problemMatcher": { + "pattern": [ + { + "regexp": ".", + "file": 1, + "location": 2, + "message": 3 + } + ], "background": { - "beginsPattern": "material\/templates\/redirect", + "beginsPattern": "material\/templates", "endsPattern": "." } } diff --git a/tools/build/transform/index.ts b/tools/build/transform/index.ts index b7f2807bc..f7f0ced7f 100644 --- a/tools/build/transform/index.ts +++ b/tools/build/transform/index.ts @@ -171,7 +171,6 @@ export function transformScript( write: false, bundle: true, sourcemap: true, - sourceRoot: path.relative(path.dirname(options.from), "."), legalComments: "inline", minify: process.argv.includes("--optimize"), plugins: [