UNPKG

sussudio

Version:

An unofficial VS Code Internal API

22 lines (21 loc) 1.21 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { createDecorator } from "../../instantiation/common/instantiation.mjs"; export const IWindowsMainService = createDecorator('windowsMainService'); export var OpenContext; (function (OpenContext) { // opening when running from the command line OpenContext[OpenContext["CLI"] = 0] = "CLI"; // macOS only: opening from the dock (also when opening files to a running instance from desktop) OpenContext[OpenContext["DOCK"] = 1] = "DOCK"; // opening from the main application window OpenContext[OpenContext["MENU"] = 2] = "MENU"; // opening from a file or folder dialog OpenContext[OpenContext["DIALOG"] = 3] = "DIALOG"; // opening from the OS's UI OpenContext[OpenContext["DESKTOP"] = 4] = "DESKTOP"; // opening through the API OpenContext[OpenContext["API"] = 5] = "API"; })(OpenContext || (OpenContext = {}));