🚑 Workaround workspaces.json warnings

This commit is contained in:
Franck Nijhof 2019-03-28 22:07:51 +01:00
parent 1e545557e9
commit 02b8296a99
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3
2 changed files with 11 additions and 3 deletions

View file

@ -18,13 +18,20 @@ if ! bashio::fs.file_exists '/data/vscode/User/settings.json'; then
mkdir -p /data/vscode/User \
|| bashio::exit.nok "Could not create persistent storage folder."
cp -R /root/.code-server/settings.json /data/vscode/User/settings.json
cp /root/.code-server/settings.json /data/vscode/User/settings.json
fi
# Workaround workspace bug for code-server
# https://github.com/codercom/code-server/issues/121
if ! bashio::fs.file_exists '/data/vscode/Backups/workspace.json'; then
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."
touch /data/vscode/Backups/workspace.json
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

View file

@ -0,0 +1 @@
{"rootWorkspaces":[],"folderURIWorkspaces":[],"emptyWorkspaceInfos":[],"emptyWorkspaces":[]}