File tree 1 file changed +4
-0
lines changed
arduino-ide-extension/src/browser/theia/core
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 2
2
import { injectable , inject } from 'inversify' ;
3
3
import { EditorWidget } from '@theia/editor/lib/browser' ;
4
4
import { CommandService } from '@theia/core/lib/common/command' ;
5
+ import { OutputWidget } from '@theia/output/lib/browser/output-widget' ;
5
6
import { ApplicationShell as TheiaApplicationShell , Widget } from '@theia/core/lib/browser' ;
6
7
import { Sketch } from '../../../common/protocol' ;
7
8
import { EditorMode } from '../../editor-mode' ;
@@ -22,6 +23,9 @@ export class ApplicationShell extends TheiaApplicationShell {
22
23
23
24
protected track ( widget : Widget ) : void {
24
25
super . track ( widget ) ;
26
+ if ( widget instanceof OutputWidget ) {
27
+ widget . title . closable = false ; // TODO: https://arduino.slack.com/archives/C01698YT7S4/p1598011990133700
28
+ }
25
29
if ( ! this . editorMode . proMode && widget instanceof EditorWidget ) {
26
30
// Make the editor un-closeable asynchronously.
27
31
this . sketchesServiceClient . currentSketch ( ) . then ( sketch => {
You can’t perform that action at this time.
0 commit comments