mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
Update sql-cli.sh so it actually works (#2422)
- This copies up to date contents from code-cli.sh. Alternatively we could remove this file and force use of code-cli.sh always
This commit is contained in:
@@ -18,14 +18,11 @@ function code() {
|
|||||||
CODE=".build/electron/$NAME"
|
CODE=".build/electron/$NAME"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
INTENDED_VERSION="v`node -p "require('./package.json').electronVersion"`"
|
|
||||||
INSTALLED_VERSION=`cat .build/electron/version 2> /dev/null`
|
|
||||||
|
|
||||||
# Node modules
|
# Node modules
|
||||||
test -d node_modules || ./scripts/npm.sh install
|
test -d node_modules || yarn
|
||||||
|
|
||||||
# Get electron
|
# Get electron
|
||||||
(test -f "$CODE" && [ $INTENDED_VERSION == $INSTALLED_VERSION ]) || ./node_modules/.bin/gulp electron
|
node build/lib/electron.js || ./node_modules/.bin/gulp electron
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
test -d out || ./node_modules/.bin/gulp compile
|
test -d out || ./node_modules/.bin/gulp compile
|
||||||
@@ -35,7 +32,7 @@ function code() {
|
|||||||
VSCODE_DEV=1 \
|
VSCODE_DEV=1 \
|
||||||
ELECTRON_ENABLE_LOGGING=1 \
|
ELECTRON_ENABLE_LOGGING=1 \
|
||||||
ELECTRON_ENABLE_STACK_DUMPING=1 \
|
ELECTRON_ENABLE_STACK_DUMPING=1 \
|
||||||
"$CODE" --debug=5874 "$ROOT/out/cli.js" . "$@"
|
"$CODE" --inspect=5874 "$ROOT/out/cli.js" . "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
code "$@"
|
code "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user