No disconnect/reconnect when DNDing the widget.

- Updated to next Theia,
 - Added elecron launch config,
 - Yet another syling for the input + selects,
 - Close monitor connection on widget close not detach.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta
2019-12-06 10:09:30 +01:00
parent 6154d1e8d5
commit 2f33038695
7 changed files with 925 additions and 501 deletions

View File

@@ -41,6 +41,7 @@ export class MonitorWidget extends ReactWidget {
this.id = MonitorWidget.ID;
this.title.label = 'Serial Monitor';
this.title.iconClass = 'arduino-serial-monitor-tab-icon';
this.title.closable = true;
this.scrollOptions = undefined;
this.toDispose.push(this.clearOutputEmitter);
}
@@ -56,14 +57,21 @@ export class MonitorWidget extends ReactWidget {
this.update();
}
dispose(): void {
super.dispose();
}
protected onAfterAttach(msg: Message): void {
super.onAfterAttach(msg);
this.monitorConnection.autoConnect = true;
}
protected onBeforeDetach(msg: Message): void {
super.onBeforeDetach(msg);
onCloseRequest(msg: Message): void {
this.monitorConnection.autoConnect = false;
if (this.monitorConnection.connected) {
this.monitorConnection.disconnect();
}
super.onCloseRequest(msg);
}
protected onResize(msg: Widget.ResizeMessage): void {