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.
 *--------------------------------------------------------------------------------------------*/

J
Joao Moreno 已提交
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;
J
Joao Moreno 已提交
20
	userDataPath: string;
21 22 23 24 25

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

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

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

33 34
	logExtensionHostCommunication: boolean;

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

	mainIPCHandle: string;
	sharedIPCHandle: string;
41
}