From 361a680dc81bc2f9abb08d7ae39e87c6af15fb9f Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Wed, 25 Sep 2024 15:29:41 +0200 Subject: [PATCH] Update/fix settings in .vscode directory (#4722) Two files have been modified, which was added to the repo 5 years ago and never touched again: The `.vscode/launch.json` file was outdated and didn't actually work, as it expected `tdd` to exist in the path. Read more about `launch.json` attributes here: https://code.visualstudio.com/Docs/editor/debugging#_launchjson-attributes The `.vscode/settings.json` file was outdated and used a config property no longer supported. The proper equivalent setting would have been: "debug.javascript.autoAttachFilter": "always" But I don't think we want that as it will auto-attach a debugger to every script you run in the console. I've opted for removing this altogether. Read more about auto-attaching here: https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_auto-attach --- .vscode/launch.json | 14 +++++--------- .vscode/settings.json | 3 --- 2 files changed, 5 insertions(+), 12 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.vscode/launch.json b/.vscode/launch.json index a5d0c61d976..3df35f8cbc1 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,15 +8,11 @@ "type": "node", "request": "launch", "name": "Test Current File", - "runtimeExecutable": "yarn", - "runtimeArgs": [ - "tdd", - "${file}", - "--inspect-brk=9229" + "skipFiles": [ + "/**" ], - "port": 9229, - "console": "integratedTerminal", - "internalConsoleOptions": "neverOpen" - }, + "program": "${file}", + "console": "integratedTerminal" + } ] } diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 2ca4a2c7b59..00000000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "debug.node.autoAttach": "on" -}