author | wenzelm |
Mon, 14 Mar 2022 21:56:46 +0100 | |
changeset 75279 | 9229f2681db7 |
parent 75277 | f64725832d63 |
permissions | -rwxr-xr-x |
75090 | 1 |
#!/usr/bin/env bash |
2 |
# |
|
3 |
# Author: Makarius |
|
4 |
# |
|
75257
d1e5f9dbf885
clarified startup of "isabelle vscode": vscodium component is required, with patches for Isabelle/VSCode;
wenzelm
parents:
75252
diff
changeset
|
5 |
# DESCRIPTION: run Isabelle/VSCode (requires "vscodium-X.YY.Z" component) |
75090 | 6 |
|
75257
d1e5f9dbf885
clarified startup of "isabelle vscode": vscodium component is required, with patches for Isabelle/VSCode;
wenzelm
parents:
75252
diff
changeset
|
7 |
isabelle vscode_setup || exit "$?" |
d1e5f9dbf885
clarified startup of "isabelle vscode": vscodium component is required, with patches for Isabelle/VSCode;
wenzelm
parents:
75252
diff
changeset
|
8 |
|
75279
9229f2681db7
clarified directory layout and settings: more robust on all platforms;
wenzelm
parents:
75277
diff
changeset
|
9 |
export ISABELLE_VSCODIUM_APP="$(platform_path "$ISABELLE_VSCODIUM_RESOURCES/vscodium")" |
9229f2681db7
clarified directory layout and settings: more robust on all platforms;
wenzelm
parents:
75277
diff
changeset
|
10 |
|
9229f2681db7
clarified directory layout and settings: more robust on all platforms;
wenzelm
parents:
75277
diff
changeset
|
11 |
ELECTRON_RUN_AS_NODE=1 "$ISABELLE_VSCODIUM_ELECTRON" \ |
9229f2681db7
clarified directory layout and settings: more robust on all platforms;
wenzelm
parents:
75277
diff
changeset
|
12 |
"$(platform_path "$ISABELLE_VSCODIUM_RESOURCES/vscodium/out/cli.js")" \ |
75277 | 13 |
--ms-enable-electron-run-as-node --locale en-US \ |
75098 | 14 |
--user-data-dir "$(platform_path "$ISABELLE_VSCODE_SETTINGS"/user-data)" \ |
75090 | 15 |
--extensions-dir "$(platform_path "$ISABELLE_VSCODE_SETTINGS"/extensions)" \ |
16 |
"$@" |