From 78d7995c88512539d3e8752be26ebffba37bb1a0 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 18 Feb 2020 15:47:38 +0100 Subject: [PATCH] :hammer: Tune configuration for lower memory & CPU --- vscode/rootfs/etc/cont-init.d/code-server.sh | 1 + vscode/rootfs/root/.code-server/settings.json | 137 +++++++++++------- 2 files changed, 85 insertions(+), 53 deletions(-) diff --git a/vscode/rootfs/etc/cont-init.d/code-server.sh b/vscode/rootfs/etc/cont-init.d/code-server.sh index d177b59..935fe1d 100644 --- a/vscode/rootfs/etc/cont-init.d/code-server.sh +++ b/vscode/rootfs/etc/cont-init.d/code-server.sh @@ -12,6 +12,7 @@ readonly -a PREVIOUS_DEFAULT_CONFIG_HASHES=( 6ed36f832778926fa614fc12eec97b8f813bbb1a04f709769c9e5f54bc8e3cfc05a110155921a3b2ae47fc8389d24fa2bd385e4ce5a6c94850813791a6ac1c82 944d9ba57968666353df7e9dc78ec5d94b9b052e1abf863b51bc1f372d9f35cb2d93259f153e9ab3b3dd1b520bfcd7bddb54803bcfd9eb65975ae8fb5553663c 4ef960e3d6e795adda51d5cbeb18d309fee87ba5cd177292a21b5a70a71a4726ae7053c3793cddc6d63d3b4dacc180ad3ea12d005fc8d63a1bc4cb29f9a17f18 + c5b8acf06ef6d9a2435e9ddb92cb9fce7cfbfe4a2206b0e0c3c4ed514cc926f8d3c662e694a995d102b5ba939056f93201c220558e06e1cd0872bfb1995ba148 ) # Ensure persistent data folder exists. diff --git a/vscode/rootfs/root/.code-server/settings.json b/vscode/rootfs/root/.code-server/settings.json index b3e5d95..fec59bd 100644 --- a/vscode/rootfs/root/.code-server/settings.json +++ b/vscode/rootfs/root/.code-server/settings.json @@ -1,55 +1,86 @@ { - "editor.renderWhitespace": "boundary", - "files.associations": { - "*.dash": "yaml", - "**/esphome/*.yaml": "yaml", - "*.yaml": "home-assistant" - }, - "files.watcherExclude": { - ".nfs**": true, - ".Trash-0/**": true, - "**/__pycache__/**": true, - "**/._*": true, - "**/.git/objects/**": true, - "**/.git/subtree-cache/**": true, - "**/*.db-shm": true, - "**/*.db-wal": true, - "**/*.db": true, - "**/*.log": true, - "**/deps/**": true, - "**/OZW_Log.txt": true, - "**/pyozw.sqlite": true - }, - "search.exclude": { - "**/__pycache__/**": true, - "**/deps/**": true, - ".Trash-0/**": true - }, - "terminal.integrated.copyOnSelection": true, - "yaml.customTags": [ - "!env_var scalar", - "!include_dir_list scalar", - "!include_dir_merge_list scalar", - "!include_dir_merge_named scalar", - "!include_dir_named scalar", - "!include scalar", - "!secret scalar" - ], - "yaml.format.enable": true, - "[yaml]": { - "editor.autoIndent": true, - "editor.insertSpaces": true, - "editor.tabSize": 2, - "editor.quickSuggestions": { - "other": true, - "comments": false, - "strings": true - } - }, - "terminal.integrated.shell.linux": "/usr/bin/zsh", - "esphome.validator": "dashboard", - "esphome.dashboardUri": "15ef4d2f-esphome.local.hass.io:6052", - "workbench.iconTheme": "vscode-icons", - "vsicons.dontShowNewVersionMessage": true, - "update.mode": "none" + "files.associations": { + "*.dash": "yaml", + "**/esphome/*.yaml": "yaml", + "*.yaml": "home-assistant" + }, + "files.watcherExclude": { + ".nfs**": true, + ".Trash-0/**": true, + "**/__pycache__/**": true, + "**/._*": true, + "**/.cloud": true, + "**/.git/objects/**": true, + "**/.git/subtree-cache/**": true, + "**/.HA_VERSION": true, + "**/.storage": true, + "**/*.db-shm": true, + "**/*.db-wal": true, + "**/*.db": true, + "**/*.log": true, + "**/deps/**": true, + "**/OZW_Log.txt": true, + "**/pyozw.sqlite": true + }, + "search.exclude": { + ".Trash-0/**": true, + "**/__pycache__/**": true, + "**/._*": true, + "**/.cloud": true, + "**/.git/objects/**": true, + "**/.git/subtree-cache/**": true, + "**/.git": true, + "**/.HA_VERSION": true, + "**/.storage": true, + "**/*.db-shm": true, + "**/*.db-wal": true, + "**/*.db": true, + "**/*.log": true, + "**/deps/**": true, + "**/OZW_Log.txt": true, + "**/pyozw.sqlite": true + }, + "files.exclude": { + ".Trash-0/**": true, + "**/__pycache__": true, + "**/.cloud": true, + "**/.DS_Store": true, + "**/.git": true, + "**/.HA_VERSION": true, + "**/.storage": true, + "**/*.db-shm": true, + "**/*.db-wal": true, + "**/*.db": true, + "**/deps/**": true + }, + "yaml.customTags": [ + "!env_var scalar", + "!include_dir_list scalar", + "!include_dir_merge_list scalar", + "!include_dir_merge_named scalar", + "!include_dir_named scalar", + "!include scalar", + "!secret scalar" + ], + "[yaml]": { + "editor.autoIndent": true, + "editor.insertSpaces": true, + "editor.tabSize": 2, + "editor.quickSuggestions": { + "other": true, + "comments": false, + "strings": true + } + }, + "editor.renderWhitespace": "boundary", + "esphome.dashboardUri": "15ef4d2f-esphome.local.hass.io:6052", + "esphome.validator": "dashboard", + "telemetry.enableTelemetry": false, + "terminal.integrated.copyOnSelection": true, + "terminal.integrated.shell.linux": "/usr/bin/zsh", + "update.mode": "none", + "vsicons.dontShowNewVersionMessage": true, + "vsicons.projectDetection.disableDetect": true, + "workbench.iconTheme": null, + "yaml.format.enable": true }