diff --git a/resources/linux/bin/code.sh b/resources/linux/bin/code.sh index 7646ba9e5d7..2bc6e635930 100755 --- a/resources/linux/bin/code.sh +++ b/resources/linux/bin/code.sh @@ -4,6 +4,7 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # If root, ensure that --user-data-dir is specified +ARGS=$@ if [ "$(id -u)" = "0" ]; then while test $# -gt 0 do @@ -33,5 +34,5 @@ fi ELECTRON="$VSCODE_PATH/@@NAME@@" CLI="$VSCODE_PATH/resources/app/out/cli.js" -ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@" -exit $? \ No newline at end of file +ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" $ARGS +exit $?