File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
arduino-ide-extension/src/browser/serial/monitor Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
1010import { ArduinoToolbar } from '../../toolbar/arduino-toolbar' ;
1111import { ArduinoMenus } from '../../menu/arduino-menus' ;
1212import { nls } from '@theia/core/lib/common' ;
13+ import { Event } from '@theia/core/lib/common/event' ;
1314import { MonitorModel } from '../../monitor-model' ;
1415import { MonitorManagerProxyClient } from '../../../common/protocol' ;
1516
@@ -84,13 +85,13 @@ export class MonitorViewContribution
8485 id : 'monitor-autoscroll' ,
8586 render : ( ) => this . renderAutoScrollButton ( ) ,
8687 isVisible : ( widget ) => widget instanceof MonitorWidget ,
87- onDidChange : this . model . onChange as any , // XXX: it's a hack. See: https://github.com/eclipse-theia/theia/pull/6696/
88+ onDidChange : this . model . onChange as Event < unknown > as Event < void > ,
8889 } ) ;
8990 registry . registerItem ( {
9091 id : 'monitor-timestamp' ,
9192 render : ( ) => this . renderTimestampButton ( ) ,
9293 isVisible : ( widget ) => widget instanceof MonitorWidget ,
93- onDidChange : this . model . onChange as any , // XXX: it's a hack. See: https://github.com/eclipse-theia/theia/pull/6696/
94+ onDidChange : this . model . onChange as Event < unknown > as Event < void > ,
9495 } ) ;
9596 registry . registerItem ( {
9697 id : SerialMonitor . Commands . CLEAR_OUTPUT . id ,
You can’t perform that action at this time.
0 commit comments