Skip to content

Commit 542198e

Browse files
author
Akos Kitta
committed
fixup status bar.
Signed-off-by: Akos Kitta <[email protected]>
1 parent 47eb3d0 commit 542198e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: arduino-ide-extension/src/browser/arduino-ide-frontend-module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
811811
bind(WidgetManager).toSelf().inSingletonScope();
812812
rebind(TheiaWidgetManager).toService(WidgetManager);
813813

814-
// To avoid running a status bar update on every single `keyDown` event from the editor.
814+
// To avoid running a status bar update on every single `keypress` event from the editor.
815815
bind(StatusBarImpl).toSelf().inSingletonScope();
816816
rebind(TheiaStatusBarImpl).toService(StatusBarImpl);
817817

Diff for: arduino-ide-extension/src/browser/theia/core/status-bar.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export class StatusBarImpl extends TheiaStatusBarImpl {
66
override async removeElement(id: string): Promise<void> {
77
await this.ready;
88
if (this.entries.delete(id)) {
9-
// Unlike Theia, IDE2 updates the status if the element to remove was among the entries. Otherwise, it's a NOOP.
9+
// Unlike Theia, IDE2 updates the status bar only if the element to remove was among the entries. Otherwise, it's a NOOP.
1010
this.update();
1111
}
1212
}

0 commit comments

Comments
 (0)