sharedProcess.ts 987 字节
Newer Older
1 2 3 4 5 6 7 8
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

import { NativeParsedArgs } from 'vs/platform/environment/common/argv';
import { LogLevel } from 'vs/platform/log/common/log';

9 10 11 12 13 14
export interface ISharedProcess {

	/**
	 * Toggles the visibility of the otherwise hidden
	 * shared process window.
	 */
15
	toggle(): Promise<void>;
16 17
}

18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
export interface ISharedProcessConfiguration {
	readonly machineId: string;
	readonly windowId: number;

	readonly appRoot: string;

	readonly userEnv: NodeJS.ProcessEnv;

	readonly sharedIPCHandle: string;

	readonly args: NativeParsedArgs;

	readonly logLevel: LogLevel;

	readonly nodeCachedDataDir?: string;
	readonly backupWorkspacesPath: string;
}