mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-06 20:21:32 +00:00
🚑 Workaround workspaces.json warnings
This commit is contained in:
parent
1e545557e9
commit
02b8296a99
2 changed files with 11 additions and 3 deletions
|
@ -18,13 +18,20 @@ if ! bashio::fs.file_exists '/data/vscode/User/settings.json'; then
|
||||||
mkdir -p /data/vscode/User \
|
mkdir -p /data/vscode/User \
|
||||||
|| bashio::exit.nok "Could not create persistent storage folder."
|
|| 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
|
fi
|
||||||
|
|
||||||
# Workaround workspace bug for code-server
|
# Workaround workspace bug for code-server
|
||||||
# https://github.com/codercom/code-server/issues/121
|
# 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 \
|
mkdir -p /data/vscode/Backups \
|
||||||
|| bashio::exit.nok "Could not create persistent storage folder."
|
|| 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
|
fi
|
||||||
|
|
1
vscode/rootfs/root/.code-server/workspaces.json
Normal file
1
vscode/rootfs/root/.code-server/workspaces.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"rootWorkspaces":[],"folderURIWorkspaces":[],"emptyWorkspaceInfos":[],"emptyWorkspaces":[]}
|
Loading…
Add table
Add a link
Reference in a new issue