mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 10:19:02 +00:00
* Run our build scripts directly as typescript #277567 Follow up on #276864 For #277526 * Remove a few more ts-node references * Fix linux and script reference * Remove `_build-script` ref * Fix script missing closing quote * use type only import * Fix export * Make sure to run copy-policy-dto * Make sure we run the copy-policy-dto script * Enable `verbatimModuleSyntax` * Pipelines fixes * Try adding explicit ext to path * Fix bad edit * Revert extra `--` --------- Co-authored-by: João Moreno <joaomoreno@users.noreply.github.com>
32 lines
588 B
Bash
Executable File
32 lines
588 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
|
|
ROOT=$(dirname $(dirname $(realpath "$0")))
|
|
else
|
|
ROOT=$(dirname $(dirname $(readlink -f $0)))
|
|
fi
|
|
|
|
function code() {
|
|
pushd $ROOT
|
|
|
|
# Get electron, compile, built-in extensions
|
|
if [[ -z "${VSCODE_SKIP_PRELAUNCH}" ]]; then
|
|
node build/lib/preLaunch.ts
|
|
fi
|
|
|
|
NODE=$(node build/lib/node.js)
|
|
if [ ! -e $NODE ];then
|
|
# Load remote node
|
|
npm run gulp node
|
|
fi
|
|
|
|
popd
|
|
|
|
NODE_ENV=development \
|
|
VSCODE_DEV=1 \
|
|
$NODE $ROOT/scripts/code-server.js "$@"
|
|
}
|
|
|
|
code "$@"
|