You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure your user settings field with the following: { "editor.stopRenderingLineAfter" : -1, "window.autoDetectColorScheme": true, "security.workspace.trust.enabled": false, "security.workspace.trust.startupPrompt": "never", "security.workspace.trust.untrustedFiles": "open", "update.mode": "none", "telemetry.telemetryLevel": "off", "workbench.statusBar.visible": false, "workbench.editorLargeFileConfirmation": 35, "workbench.editor.restoreViewState": false }
Set your OS to dark mode
Start code-server
Expected
Code-server will load in dark mode
Actual
Code-server will load in dark mode, then after 2-5 seconds it will switch to light mode. Going into your OS settings and switching to light mode will do nothing (as code server is already in light mode), but then switching to dark mode will get code-server to switch to dark mode.
Logs
No response
Screenshot/Video
code-server-theme.mp4
Does this issue happen in VS Code or GitHub Codespaces?
I tested this in native VS Code.
This does not happen in native VS Code.
I tested this in GitHub Codespaces.
This does not happen in GitHub Codespaces.
Are you accessing code-server over a secure context?
I am using a secure context.
Notes
We do have a few extensions, so I had tested removing all of those extensions first.
The text was updated successfully, but these errors were encountered:
I think this is an upstream issue, even in Codespaces it seems to ignore the window.autoDetectColorScheme value and always choose whatever theme is the default.
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.18.0 +Steps to Reproduce
{ "editor.stopRenderingLineAfter" : -1, "window.autoDetectColorScheme": true, "security.workspace.trust.enabled": false, "security.workspace.trust.startupPrompt": "never", "security.workspace.trust.untrustedFiles": "open", "update.mode": "none", "telemetry.telemetryLevel": "off", "workbench.statusBar.visible": false, "workbench.editorLargeFileConfirmation": 35, "workbench.editor.restoreViewState": false }
Expected
Code-server will load in dark mode
Actual
Code-server will load in dark mode, then after 2-5 seconds it will switch to light mode. Going into your OS settings and switching to light mode will do nothing (as code server is already in light mode), but then switching to dark mode will get code-server to switch to dark mode.
Logs
No response
Screenshot/Video
code-server-theme.mp4
Does this issue happen in VS Code or GitHub Codespaces?
Are you accessing code-server over a secure context?
Notes
We do have a few extensions, so I had tested removing all of those extensions first.
The text was updated successfully, but these errors were encountered: