Skip to content

Commit 17de5e1

Browse files
author
Akos Kitta
committed
ATL-312: Fixed output resize issue.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent af21f07 commit 17de5e1

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

arduino-ide-extension/src/browser/arduino-ide-frontend-module.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ import { WorkspaceDeleteHandler } from './theia/workspace/workspace-delete-handl
115115
import { TabBarToolbar } from './theia/core/tab-bar-toolbar';
116116
import { EditorWidgetFactory as TheiaEditorWidgetFactory } from '@theia/editor/lib/browser/editor-widget-factory';
117117
import { EditorWidgetFactory } from './theia/editor/editor-widget-factory';
118+
import { OutputWidget as TheiaOutputWidget } from '@theia/output/lib/browser/output-widget';
119+
import { OutputWidget } from './theia/output/output-widget';
118120

119121
const ElementQueries = require('css-element-queries/src/ElementQueries');
120122

@@ -299,6 +301,8 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
299301
container.bind(TabBarToolbar).toSelf().inSingletonScope();
300302
return container.get(TabBarToolbar);
301303
});
304+
bind(OutputWidget).toSelf().inSingletonScope();
305+
rebind(TheiaOutputWidget).toService(OutputWidget);
302306

303307
// Show a disconnected status bar, when the daemon is not available
304308
bind(ApplicationConnectionStatusContribution).toSelf().inSingletonScope();
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { injectable } from 'inversify';
2+
import { Message, Widget } from '@theia/core/lib/browser';
3+
import { OutputWidget as TheiaOutputWidget } from '@theia/output/lib/browser/output-widget';
4+
5+
// Patched after https://github.com/eclipse-theia/theia/issues/8361
6+
// Remove this module after ATL-222 and the Theia update.
7+
@injectable()
8+
export class OutputWidget extends TheiaOutputWidget {
9+
10+
protected onAfterShow(msg: Message): void {
11+
super.onAfterShow(msg);
12+
this.onResize(Widget.ResizeMessage.UnknownSize);
13+
}
14+
15+
}

0 commit comments

Comments
 (0)