File tree 1 file changed +3
-3
lines changed
arduino-ide-extension/src/browser/contributions
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import {
19
19
SketchContribution ,
20
20
TabBarToolbarRegistry ,
21
21
} from './contribution' ;
22
- import { MaybePromise , MenuModelRegistry , nls } from '@theia/core/lib/common' ;
22
+ import { MenuModelRegistry , nls } from '@theia/core/lib/common' ;
23
23
import { CurrentSketch } from '../sketches-service-client-impl' ;
24
24
import { ArduinoMenus } from '../menu/arduino-menus' ;
25
25
@@ -99,8 +99,8 @@ export class Debug extends SketchContribution {
99
99
this . notificationCenter . onPlatformDidUninstall ( ( ) => this . refreshState ( ) ) ;
100
100
}
101
101
102
- override onReady ( ) : MaybePromise < void > {
103
- this . refreshState ( ) ;
102
+ override onReady ( ) : void {
103
+ this . boardsServiceProvider . ready . then ( ( ) => this . refreshState ( ) ) ;
104
104
}
105
105
106
106
override registerCommands ( registry : CommandRegistry ) : void {
You can’t perform that action at this time.
0 commit comments