environment.ts 1.2 KB
Newer Older
J
Joao Moreno 已提交
1 2 3 4 5
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

J
Johannes Rieken 已提交
6
import { ParsedArgs } from 'vs/platform/environment/node/argv';
7
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
J
Joao Moreno 已提交
8

J
Joao Moreno 已提交
9 10 11
export const IEnvironmentService = createDecorator<IEnvironmentService>('environmentService');

export interface IEnvironmentService {
12
	_serviceBrand: any;
J
Joao Moreno 已提交
13

J
Joao Moreno 已提交
14 15
	args: ParsedArgs;

16
	execPath: string;
17
	appRoot: string;
18

J
Joao Moreno 已提交
19
	userHome: string;
20
	userProductHome: string;
J
Joao Moreno 已提交
21
	userDataPath: string;
22 23 24 25 26

	appSettingsHome: string;
	appSettingsPath: string;
	appKeybindingsPath: string;

B
Benjamin Pasero 已提交
27
	disableExtensions: boolean;
J
Joao Moreno 已提交
28
	extensionsPath: string;
29
	extensionDevelopmentPath: string;
B
Benjamin Pasero 已提交
30
	extensionTestsPath: string;
31

J
Joao Moreno 已提交
32
	debugExtensionHost: { port: number; break: boolean; };
33

34 35
	logExtensionHostCommunication: boolean;

36
	isBuilt: boolean;
37
	verbose: boolean;
38
	wait: boolean;
B
Benjamin Pasero 已提交
39
	performance: boolean;
40 41 42

	mainIPCHandle: string;
	sharedIPCHandle: string;
43
}