code-server icon indicating copy to clipboard operation
code-server copied to clipboard

Theme resets to default on relaunch

Open sobakaio opened this issue 6 years ago • 24 comments

  • Web Browser: Google Chrome Version 86.0.4240.111 (Official Build) (x86_64)
  • Local OS: MacOS 10.15.7
  • Remote OS: Ubuntu 20.04
  • Remote Architecture: x86-64
  • code-server --version: v3.6.1

After the latest update my selected theme resets to default Light+ after one or several consecutive client restarts. It doesn't matter what theme is selected before. If I open settings.json on server I see the theme is correct, but in workbench it resets to default. When the theme resets and I open Preferences -> Color Theme then it also resets in settings.json to "workbench.colorTheme": "Default Light+". Very weird.

I attach small video for the sake of demonstration https://cloud.dmitriypavlov.com/s/9YoT5scWALkcyq9 (theme resets on 3 relaunch). Please advice.

sobakaio avatar Oct 24 '20 17:10 sobakaio

I was hoping 1.51 had improved the situation but it looks like it's still using local storage. Now that 1.51 is merged this is my next priority.

code-asher avatar Nov 20 '20 18:11 code-asher

Will be in v3.7.3 which I'll get out today!

nhooyr avatar Nov 23 '20 18:11 nhooyr

"Who configures the configuration files"?

Hard-coding config files locations is very limiting when an app needs to be containerized and deployed into air-gapped environments...

We should aim the level of flexibility that more mature could-native IDEs and other apps have attained (with env vars and server startup args): https://docs.jupyter.org/en/latest/use/jupyter-directories.html https://docs.ray.io/en/latest/ray-core/configure.html etc.

Related issue opened for code: https://github.com/microsoft/vscode-remote-release/issues/6925

mirekphd avatar Jan 14 '23 19:01 mirekphd

Hard-coding config files locations is very limiting when an app needs to be containerized and deployed into air-gapped environments...

@mirekphd The file location for user settings (at ~/.local/share/code-server/User/settings.json) is just fine. It is not a limiting factor for deployments in containerised environment.

We should aim the level of flexibility that more mature could-native IDEs and other apps have attained (with env vars and server startup args):
https://docs.jupyter.org/en/latest/use/jupyter-directories.html
https://docs.ray.io/en/latest/ray-core/configure.html etc.

I am running code-server from within a customised JupyterLab container. User generated data is persisted because the home directory is mounted from a docker volume.


See https://demo.jupyter.b-data.ch for a reference deployment using JupyterHub and JupyterLab + code-server.


P.S.:

benz0li avatar Jan 15 '23 07:01 benz0li