Skip to content

Commit 4d04aac

Browse files
author
Akos Kitta
committed
fix: refresh debug state if board+port is restored
Closes #2237 Signed-off-by: Akos Kitta <[email protected]>
1 parent db83ed0 commit 4d04aac

File tree

1 file changed

+3
-3
lines changed
  • arduino-ide-extension/src/browser/contributions

1 file changed

+3
-3
lines changed

Diff for: arduino-ide-extension/src/browser/contributions/debug.ts

+3-3
Original file line numberDiff line numberDiff 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';
2323
import { CurrentSketch } from '../sketches-service-client-impl';
2424
import { 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 {

0 commit comments

Comments
 (0)