mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-03 18:51:23 +00:00
🚑 Fixes missing workspace.json log spam
This commit is contained in:
parent
531964776d
commit
eaf5f5b9e3
1 changed files with 8 additions and 0 deletions
|
@ -20,3 +20,11 @@ if ! bashio::fs.file_exists '/data/vscode/User/settings.json'; then
|
|||
|
||||
cp -R /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
|
||||
mkdir -p /data/vscode/Backups \
|
||||
|| bashio::exit.nok "Could not create persistent storage folder."
|
||||
touch /data/vscode/Backups/workspace.json
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue