environment.ts 981 字节
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;

J
Joao Moreno 已提交
23
	extensionsPath: string;
24
	extensionDevelopmentPath: string;
25

26
	debugExtensionHostPort: number;
27
	debugBrkExtensionHost: boolean;
28

29
	isBuilt: boolean;
30
	verbose: boolean;
B
Benjamin Pasero 已提交
31
	performance: boolean;
32 33

	debugBrkFileWatcherPort: number;
34
}