UNPKG

@sussudio/platform

Version:

Internal APIs for VS Code's service injection the base services.

19 lines (18 loc) 721 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { BrowserWindowDriver } from '../browser/driver.mjs'; class NativeWindowDriver extends BrowserWindowDriver { helper; constructor(helper) { super(); this.helper = helper; } exitApplication() { return this.helper.exitApplication(); } } export function registerWindowDriver(helper) { Object.assign(window, { driver: new NativeWindowDriver(helper) }); }