mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-25 04:36:23 +00:00
* web - first cut `yarn web` via our server * properly pipe output * web - remove traces of web playground * web - remember last opened workspace for convinience * use vscode-test-web for server less, clean up web commands * fix comment * fix `yarn web` * rename to code-server * open system browser * code-server script: use minimist * test resolver: use ./scripts/code-server * integartion tests: fix code-server command name Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
27 lines
495 B
Bash
Executable File
27 lines
495 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() {
|
|
cd $ROOT
|
|
|
|
# Sync built-in extensions
|
|
yarn download-builtin-extensions
|
|
|
|
# Load remote node
|
|
yarn gulp node
|
|
|
|
NODE=$(node build/lib/node.js)
|
|
|
|
NODE_ENV=development \
|
|
VSCODE_DEV=1 \
|
|
$NODE ./resources/server/bin-dev/code-server.js "$@"
|
|
}
|
|
|
|
code "$@"
|