Skip to content

Commit c2935f2

Browse files
authored
Fix to retain and pass args
The --user-data-dir check routine shifts and removes the args. This edit is to retain the original arguments and pass to executable when finally called. See issue microsoft#15435
1 parent 62af23b commit c2935f2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

resources/linux/bin/code.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Licensed under the MIT License. See License.txt in the project root for license information.
55

66
# If root, ensure that --user-data-dir is specified
7+
ARGS=$@
78
if [ "$(id -u)" = "0" ]; then
89
while test $# -gt 0
910
do
@@ -33,5 +34,5 @@ fi
3334

3435
ELECTRON="$VSCODE_PATH/@@NAME@@"
3536
CLI="$VSCODE_PATH/resources/app/out/cli.js"
36-
ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"
37-
exit $?
37+
ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" $ARGS
38+
exit $?

0 commit comments

Comments
 (0)