Fix TelemetryOptOut error and add debug targets for running extension integration tests (#7765)

This commit is contained in:
Charles Gagnon
2019-10-17 13:39:11 -07:00
committed by GitHub
parent fa1d5cc49d
commit 48bf72bfc4
2 changed files with 25 additions and 1 deletions

View File

@@ -33,6 +33,6 @@ export class NativeTelemetryOptOut extends AbstractTelemetryOptOut {
}
protected getWindowCount(): Promise<number> {
return this.electronService.getWindowCount();
return this.electronService ? this.electronService.getWindowCount() : Promise.resolve(0); // {{SQL CARBON EDIT}} Tests run without UI context so electronService is undefined in that case
}
}