From dc392492a2b2ac421616f938cd8ca9a3c2b0092f Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Wed, 19 Apr 2023 14:46:11 +0000 Subject: [PATCH] Update file run_onchange_after_26-vscode-extensions.sh.tmpl --- .../run_onchange_after_26-vscode-extensions.sh.tmpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/.chezmoiscripts/universal/run_onchange_after_26-vscode-extensions.sh.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_26-vscode-extensions.sh.tmpl index 784fb37f..fc026f7b 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_26-vscode-extensions.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_26-vscode-extensions.sh.tmpl @@ -31,6 +31,12 @@ {{ includeTemplate "universal/profile" }} {{ includeTemplate "universal/logg" }} +### Hides useless error during extension installations +# Error looks like: +# (node:53151) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. +# (Use `Electron --trace-deprecation ...` to show where the warning was created) +export NODE_OPTIONS=--throw-deprecation + # @description Install Visual Studio Code extensions if they are not already installed (by checking the `code --list-extensions` output) if command -v code > /dev/null; then EXTENSIONS="$(code --list-extensions)"