some tweaks for inline debug adaper API; see #85544

This commit is contained in:
Andre Weinand
2019-11-30 00:52:05 +01:00
parent a5ce0f26cd
commit 665b576260
4 changed files with 18 additions and 16 deletions

View File

@@ -1054,12 +1054,6 @@ class DirectDebugAdapter extends AbstractDebugAdapter {
this.acceptMessage(message);
});
}
if (this.implementation.onError) {
implementation.onError((error: Error) => {
this._onError.fire(error);
});
}
}
startSession(): Promise<void> {
@@ -1073,6 +1067,9 @@ class DirectDebugAdapter extends AbstractDebugAdapter {
}
stopSession(): Promise<void> {
if (this.implementation.dispose) {
this.implementation.dispose();
}
return Promise.resolve(undefined);
}
}