mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-07 04:31:24 +00:00
🧹 Remove workarounds no longer needed (#434)
This commit is contained in:
parent
43f99ee621
commit
cabb3fdbc0
1 changed files with 0 additions and 15 deletions
|
@ -56,18 +56,3 @@ current=$(sha512sum /data/vscode/User/settings.json|cut -d " " -f 1)
|
||||||
if [[ " ${PREVIOUS_DEFAULT_CONFIG_HASHES[*]} " == *" ${current} "* ]]; then
|
if [[ " ${PREVIOUS_DEFAULT_CONFIG_HASHES[*]} " == *" ${current} "* ]]; then
|
||||||
cp /root/.code-server/settings.json /data/vscode/User/settings.json
|
cp /root/.code-server/settings.json /data/vscode/User/settings.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Workaround workspace bug for code-server.
|
|
||||||
# https://github.com/codercom/code-server/issues/121
|
|
||||||
if ! bashio::fs.file_exists '/data/vscode/Backups/workspaces.json'; then
|
|
||||||
mkdir -p /data/vscode/Backups \
|
|
||||||
|| bashio::exit.nok "Could not create persistent storage folder."
|
|
||||||
cp /root/.code-server/workspaces.json /data/vscode/Backups/workspaces.json
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Workaround workspace bug for code-server (same as above, part 2).
|
|
||||||
# https://github.com/codercom/code-server/issues/121
|
|
||||||
if ! bashio::fs.file_exists '/data/vscode/User/workspaceStorage'; then
|
|
||||||
mkdir -p /data/vscode/User/workspaceStorage \
|
|
||||||
|| bashio::exit.nok "Could not create persistent storage folder."
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue