environment.ts 1.1 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.
 *--------------------------------------------------------------------------------------------*/

6
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
J
Joao Moreno 已提交
7

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

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

13
	execPath: string;
14
	appRoot: string;
15

J
Joao Moreno 已提交
16
	userHome: string;
J
Joao Moreno 已提交
17
	userDataPath: string;
18 19 20 21 22

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

B
Benjamin Pasero 已提交
23
	disableExtensions: boolean;
J
Joao Moreno 已提交
24
	extensionsPath: string;
25
	extensionDevelopmentPath: string;
B
Benjamin Pasero 已提交
26
	extensionTestsPath: string;
27

J
Joao Moreno 已提交
28
	debugExtensionHost: { port: number; break: boolean; };
29

30 31
	logExtensionHostCommunication: boolean;

32
	isBuilt: boolean;
33
	verbose: boolean;
B
Benjamin Pasero 已提交
34
	performance: boolean;
35 36 37

	mainIPCHandle: string;
	sharedIPCHandle: string;
38
}