src/vs/platform/windows/electron-main/windowImpl.ts/CodeWindow/doSetNativeFullScreen
class CodeWindow:	private doSetNativeFullScreen(fullscreen: boolean): void {
		if (isMacintosh) {
			this.transientIsNativeFullScreen = fullscreen;
			this.joinNativeFullScreenTransition = new DeferredPromise<void>();
			Promise.race([
				this.joinNativeFullScreenTransition.p,
				timeout(1000) // still timeout after some time in case we miss the event
			]).finally(() => this.transientIsNativeFullScreen = undefined);
		}

		this._win.setFullScreen(fullscreen);
	}