File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
arduino-ide-extension/src/browser/contributions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import {
1919 SketchContribution ,
2020 TabBarToolbarRegistry ,
2121} from './contribution' ;
22- import { MaybePromise , MenuModelRegistry , nls } from '@theia/core/lib/common' ;
22+ import { MenuModelRegistry , nls } from '@theia/core/lib/common' ;
2323import { CurrentSketch } from '../sketches-service-client-impl' ;
2424import { ArduinoMenus } from '../menu/arduino-menus' ;
2525
@@ -99,8 +99,8 @@ export class Debug extends SketchContribution {
9999 this . notificationCenter . onPlatformDidUninstall ( ( ) => this . refreshState ( ) ) ;
100100 }
101101
102- override onReady ( ) : MaybePromise < void > {
103- this . refreshState ( ) ;
102+ override onReady ( ) : void {
103+ this . boardsServiceProvider . ready . then ( ( ) => this . refreshState ( ) ) ;
104104 }
105105
106106 override registerCommands ( registry : CommandRegistry ) : void {
You can’t perform that action at this time.
0 commit comments