From e488e75515c84626040897d32c0814691a4aebfc Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Tue, 30 Apr 2024 19:35:00 +0200 Subject: [PATCH] chore: add `--trace-deprecation` to `NODE_OPTIONS` This will produce stack traces in case some Node API gets deprecated. Without setting the option, no stack trace is printed, making these cases much harder to debug. Closes cytechmobile/radicle-vscode-extension#130 Co-authored-by: Konstantinos Maninakis Signed-off-by: Lorenz Leutgeb --- .vscode/launch.json | 3 +++ CHANGELOG.md | 1 + 2 files changed, 4 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index 1b1adf81..37a716a3 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -13,6 +13,9 @@ "outFiles": ["${workspaceFolder}/dist/**/*.js"], "preLaunchTask": "npm: dev", "postDebugTask": "Terminate All Tasks", + "env": { + "NODE_OPTIONS": "--trace-deprecation" + } }, ] } diff --git a/CHANGELOG.md b/CHANGELOG.md index ba680795..3c9feb9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ ### 🏡 Chores - **scripts:** parallelize verifying extension and webview dependencies ([#108](https://github.com/cytechmobile/radicle-vscode-extension/pull/8), [#111](https://github.com/cytechmobile/radicle-vscode-extension/pull/111)) +- **dev:** configure "Develop Extension" launch configuration to show the stack trace in case of nodejs deprecation warning, helping pinpoint the roote cause ([#132](https://github.com/cytechmobile/radicle-vscode-extension/issues/132)) ### 🤖 CI