mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 12:33:35 +01:00
Web: change yarn web to run with our server instead of playground (#139725)
* 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>
This commit is contained in:
26
scripts/code-server.sh
Executable file
26
scripts/code-server.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/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 "$@"
|
||||
Reference in New Issue
Block a user