Files
vscode/extensions/copilot/script/simulate.sh
kieferrm 333d9a4053 Hello Copilot
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-06-27 11:35:20 +02:00

22 lines
711 B
Bash
Executable File

#!/usr/bin/env bash
#---------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
#---------------------------------------------------------------------------------------------
set -e
if [[ "$OSTYPE" == "darwin"* ]]; then
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
ROOT=$(dirname "$(dirname "$(realpath "$0")")")
ELTRON="$ROOT/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron"
else
ROOT=$(dirname "$(dirname "$(readlink -f $0)")")
ELTRON="$ROOT/node_modules/electron/dist/electron"
fi
cd "$ROOT"
exec "$ELTRON" ./script/electron/simulationWorkbenchMain.js "$@"
exit $?