Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/code-server.sh')
-rwxr-xr-xscripts/code-server.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/code-server.sh b/scripts/code-server.sh
index 298157e4ee7..bc910a9bb98 100755
--- a/scripts/code-server.sh
+++ b/scripts/code-server.sh
@@ -8,7 +8,7 @@ else
fi
function code() {
- cd $ROOT
+ pushd $ROOT
# Get electron, compile, built-in extensions
if [[ -z "${VSCODE_SKIP_PRELAUNCH}" ]]; then
@@ -21,9 +21,11 @@ function code() {
yarn gulp node
fi
+ popd
+
NODE_ENV=development \
VSCODE_DEV=1 \
- $NODE ./scripts/code-server.js "$@"
+ $NODE $ROOT/scripts/code-server.js "$@"
}
code "$@"