mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Bringing back leftover changes (#18527)
This commit is contained in:
@@ -39,6 +39,6 @@ export class NativeTelemetryOptOut extends AbstractTelemetryOptOut {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected getWindowCount(): Promise<number> {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user