Skip to content

Commit 5f515f0

Browse files
author
Akos Kitta
committed
fixup: made the Output view not closeable.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent 1078f6f commit 5f515f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arduino-ide-extension/src/browser/theia/core/application-shell.ts

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { injectable, inject } from 'inversify';
33
import { EditorWidget } from '@theia/editor/lib/browser';
44
import { CommandService } from '@theia/core/lib/common/command';
5+
import { OutputWidget } from '@theia/output/lib/browser/output-widget';
56
import { ApplicationShell as TheiaApplicationShell, Widget } from '@theia/core/lib/browser';
67
import { Sketch } from '../../../common/protocol';
78
import { EditorMode } from '../../editor-mode';
@@ -22,6 +23,9 @@ export class ApplicationShell extends TheiaApplicationShell {
2223

2324
protected track(widget: Widget): void {
2425
super.track(widget);
26+
if (widget instanceof OutputWidget) {
27+
widget.title.closable = false; // TODO: https://arduino.slack.com/archives/C01698YT7S4/p1598011990133700
28+
}
2529
if (!this.editorMode.proMode && widget instanceof EditorWidget) {
2630
// Make the editor un-closeable asynchronously.
2731
this.sketchesServiceClient.currentSketch().then(sketch => {

0 commit comments

Comments
 (0)