UNPKG

sussudio

Version:

An unofficial VS Code Internal API

19 lines (18 loc) 757 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) }); }