Skip to content

Commit b2a495c

Browse files
committed
[jb] preserve indexes between workspace restarts
by moving default config and system directories under /workspace
1 parent cc66022 commit b2a495c

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.idea/compiler.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/ide/jetbrains/image/startup.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ if [ "${SUPERVISOR_DEBUG_ENABLE+}" = "true" ]; then
2020
JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:0"
2121
fi
2222

23+
# Set default config and system directories under /workspace to preserve between restarts
24+
export IJ_HOST_CONFIG_BASE_DIR=/workspace/.config/JetBrains
25+
export IJ_HOST_SYSTEM_BASE_DIR=/workspace/.cache/JetBrains
26+
27+
# Enable host status endpoint
2328
export CWM_HOST_STATUS_OVER_HTTP_TOKEN=gitpod
29+
2430
/ide-desktop/backend/bin/remote-dev-server.sh run "$GITPOD_REPO_ROOT"
2531

2632
echo "Desktop IDE startup script exited"

0 commit comments

Comments
 (0)