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
Changing the "Editor Theme" setting doesn't consistently apply right away. Sometimes new documents will pick up the setting.
For now labeled as requires restart, but should investigate what's going on here. Not sure if issue within TabView of property change notification, or within the property pickup of the Monaco editor.
If we swap editors, will see if this persists or not as then helps narrow down where issue is.
Did some code reading on this one, sharing in case it helps narrow it down:
The app-side chain looks sound: the Settings panel ComboBox writes SettingsService.EditorTheme (TwoWay), SettingsService.Set raises PropertyChanged("EditorTheme"), and Document.xaml binds monaco:CodeEditor.RequestedTheme OneWay to Settings.EditorTheme.
Nothing in Document.xaml.cs re-applies the theme after the editor has loaded.
So the likely suspect is the Monaco.Editor CodeEditor wrapper itself (WebView-hosted): my guess is RequestedTheme only takes effect when the editor (re)initializes, which matches "new documents pick up the setting".
A fix would be either re-applying the theme / re-initializing the editor when the setting changes, or handling theme changes inside the Monaco.Editor wrapper. Since the issue mentions possibly swapping editors: want a PR that re-applies the theme on change here, or is this better left until the editor swap settles? (I don't have a Windows dev environment to verify behavior locally, so I'd rather not send a speculative PR.)
Activity
michael-hawker commentedon Dec 22, 2025
It also appears as if the light/dark mode button in the quick access bar doesn't show up right-away either. Not sure if related:
AhmedMohamedGaber commentedon Nov 26, 2026
Did some code reading on this one, sharing in case it helps narrow it down:
SettingsService.EditorTheme(TwoWay),SettingsService.SetraisesPropertyChanged("EditorTheme"), andDocument.xamlbindsmonaco:CodeEditor.RequestedThemeOneWay toSettings.EditorTheme.Document.xaml.csre-applies the theme after the editor has loaded.Monaco.EditorCodeEditor wrapper itself (WebView-hosted): my guess isRequestedThemeonly takes effect when the editor (re)initializes, which matches "new documents pick up the setting".A fix would be either re-applying the theme / re-initializing the editor when the setting changes, or handling theme changes inside the Monaco.Editor wrapper. Since the issue mentions possibly swapping editors: want a PR that re-applies the theme on change here, or is this better left until the editor swap settles? (I don't have a Windows dev environment to verify behavior locally, so I'd rather not send a speculative PR.)