mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 18:28:58 +00:00
@@ -3,8 +3,6 @@
|
|||||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
|
|
||||||
ARGS=$@
|
|
||||||
|
|
||||||
# If root, ensure that --user-data-dir is specified
|
# If root, ensure that --user-data-dir is specified
|
||||||
if [ "$(id -u)" = "0" ]; then
|
if [ "$(id -u)" = "0" ]; then
|
||||||
while test $# -gt 0
|
while test $# -gt 0
|
||||||
@@ -35,5 +33,5 @@ fi
|
|||||||
|
|
||||||
ELECTRON="$VSCODE_PATH/@@NAME@@"
|
ELECTRON="$VSCODE_PATH/@@NAME@@"
|
||||||
CLI="$VSCODE_PATH/resources/app/out/cli.js"
|
CLI="$VSCODE_PATH/resources/app/out/cli.js"
|
||||||
ATOM_SHELL_INTERNAL_RUN_AS_NODE=1 "$ELECTRON" "$CLI" $ARGS
|
ATOM_SHELL_INTERNAL_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"
|
||||||
exit $?
|
exit $?
|
||||||
@@ -31,7 +31,8 @@ function code() {
|
|||||||
VSCODE_DEV=1 \
|
VSCODE_DEV=1 \
|
||||||
ELECTRON_ENABLE_LOGGING=1 \
|
ELECTRON_ENABLE_LOGGING=1 \
|
||||||
ELECTRON_ENABLE_STACK_DUMPING=1 \
|
ELECTRON_ENABLE_STACK_DUMPING=1 \
|
||||||
"$ELECTRON" "$CLI" . $@
|
echo $@
|
||||||
|
"$ELECTRON" "$CLI" . "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
code "$@"
|
code "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user