Skip to content

Commit

Permalink
fix: refresh debug state if board+port is restored
Browse files Browse the repository at this point in the history
Closes #2237

Signed-off-by: Akos Kitta <[email protected]>
  • Loading branch information
Akos Kitta committed Sep 29, 2023
1 parent db83ed0 commit 4d04aac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arduino-ide-extension/src/browser/contributions/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
SketchContribution,
TabBarToolbarRegistry,
} from './contribution';
import { MaybePromise, MenuModelRegistry, nls } from '@theia/core/lib/common';
import { MenuModelRegistry, nls } from '@theia/core/lib/common';
import { CurrentSketch } from '../sketches-service-client-impl';
import { ArduinoMenus } from '../menu/arduino-menus';

Expand Down Expand Up @@ -99,8 +99,8 @@ export class Debug extends SketchContribution {
this.notificationCenter.onPlatformDidUninstall(() => this.refreshState());
}

override onReady(): MaybePromise<void> {
this.refreshState();
override onReady(): void {
this.boardsServiceProvider.ready.then(() => this.refreshState());
}

override registerCommands(registry: CommandRegistry): void {
Expand Down

0 comments on commit 4d04aac

Please sign in to comment.