lib/Tools/vscode
author wenzelm
Mon, 14 Mar 2022 21:56:46 +0100
changeset 75279 9229f2681db7
parent 75277 f64725832d63
permissions -rwxr-xr-x
clarified directory layout and settings: more robust on all platforms;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
75090
2af8426e1f65 run Isabelle/VSCode using local VSCodium installation;
wenzelm
parents:
diff changeset
     1
#!/usr/bin/env bash
2af8426e1f65 run Isabelle/VSCode using local VSCodium installation;
wenzelm
parents:
diff changeset
     2
#
2af8426e1f65 run Isabelle/VSCode using local VSCodium installation;
wenzelm
parents:
diff changeset
     3
# Author: Makarius
2af8426e1f65 run Isabelle/VSCode using local VSCodium installation;
wenzelm
parents:
diff changeset
     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
2af8426e1f65 run Isabelle/VSCode using local VSCodium installation;
wenzelm
parents:
diff changeset
     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
f64725832d63 support Electron application framework;
wenzelm
parents: 75273
diff changeset
    13
  --ms-enable-electron-run-as-node --locale en-US \
75098
9e79c9f55edd clarified directory;
wenzelm
parents: 75090
diff changeset
    14
  --user-data-dir "$(platform_path "$ISABELLE_VSCODE_SETTINGS"/user-data)" \
75090
2af8426e1f65 run Isabelle/VSCode using local VSCodium installation;
wenzelm
parents:
diff changeset
    15
  --extensions-dir "$(platform_path "$ISABELLE_VSCODE_SETTINGS"/extensions)" \
2af8426e1f65 run Isabelle/VSCode using local VSCodium installation;
wenzelm
parents:
diff changeset
    16
  "$@"