don't try to use non-existing tracker

This commit is contained in:
Andre Weinand
2018-10-04 13:26:05 +02:00
parent a5cbf6a7d4
commit 744d94ab42

View File

@@ -404,11 +404,15 @@ export class ExtHostDebugService implements ExtHostDebugServiceShape {
mythis._debugServiceProxy.$acceptDAMessage(handle, message);
});
da.onError(err => {
tracker.debugAdapterError(err);
if (tracker) {
tracker.debugAdapterError(err);
}
this._debugServiceProxy.$acceptDAError(handle, err.name, err.message, err.stack);
});
da.onExit(code => {
tracker.debugAdapterExit(code, null);
if (tracker) {
tracker.debugAdapterExit(code, null);
}
this._debugServiceProxy.$acceptDAExit(handle, code, null);
});