Code server provide a way to open a default-folder or default-workspace. Fixes #143580

This commit is contained in:
Martin Aeschlimann
2022-03-15 17:31:54 +01:00
parent c94e9da4c3
commit e971acd737
4 changed files with 30 additions and 11 deletions

View File

@@ -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 "$@"