File tree 1 file changed +6
-2
lines changed
arduino-ide-extension/src/browser/theia/monaco
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ import { ArduinoThemes } from '../core/theming';
4
4
5
5
@injectable ( )
6
6
export class MonacoThemingService extends TheiaMonacoThemingService {
7
- override initialize ( ) : void {
8
- super . initialize ( ) ;
7
+ protected override restore ( ) : Promise < void > {
9
8
const { Light, Dark } = ArduinoThemes ;
10
9
this . registerParsedTheme ( {
11
10
id : Light . id ,
@@ -19,5 +18,10 @@ export class MonacoThemingService extends TheiaMonacoThemingService {
19
18
uiTheme : 'vs-dark' ,
20
19
json : require ( '../../../../src/browser/data/dark.color-theme.json' ) ,
21
20
} ) ;
21
+ // The custom theme registration must happen before restoring the themes.
22
+ // Otherwise, the theme content change is not picked up by Theia.
23
+ // There is a indexedDB getAll before the DB put.
24
+ // https://github.com/arduino/arduino-ide/issues/1251#issuecomment-1436737702
25
+ return super . restore ( ) ;
22
26
}
23
27
}
You can’t perform that action at this time.
0 commit comments