Bringing back leftover changes (#18527)

This commit is contained in:
Aasim Khan
2022-02-22 15:44:01 -08:00
committed by GitHub
parent 5731366a1c
commit 19c7971630

View File

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