/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { MessageBoxOptions, MessageBoxReturnValue } from 'electron'; import { createDecorator } from 'vs/platform/instantiation/common/instantiation'; export const IElectronService = createDecorator('electronService'); export interface IElectronService { _serviceBrand: undefined; // Window windowCount(): Promise; openEmptyWindow(options?: { reuse?: boolean }): Promise; // Dialogs showMessageBox(options: MessageBoxOptions): Promise; // OS showItemInFolder(path: string): Promise; relaunch(options?: { addArgs?: string[], removeArgs?: string[] }): Promise; }