blob: de37a985f1762952686cf99b10e5e062ea9a9d0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { refineServiceDecorator } from 'vs/platform/instantiation/common/instantiation';
import { IPath } from 'vs/platform/window/common/window';
import { IEnvironmentService } from 'vs/platform/environment/common/environment';
import { URI } from 'vs/base/common/uri';
export const IWorkbenchEnvironmentService = refineServiceDecorator<IEnvironmentService, IWorkbenchEnvironmentService>(IEnvironmentService);
/**
* A workbench specific environment service that is only present in workbench
* layer.
*/
export interface IWorkbenchEnvironmentService extends IEnvironmentService {
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// NOTE: KEEP THIS INTERFACE AS SMALL AS POSSIBLE. AS SUCH:
// PUT NON-WEB PROPERTIES INTO THE NATIVE WORKBENCH
// ENVIRONMENT SERVICE
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// --- Paths
readonly logFile: URI;
readonly extHostLogsPath: URI;
// --- Extensions
readonly extensionEnabledProposedApi?: string[];
// --- Config
readonly remoteAuthority?: string;
readonly skipReleaseNotes: boolean;
readonly skipWelcome: boolean;
readonly disableWorkspaceTrust: boolean;
readonly webviewExternalEndpoint: string;
// --- Development
readonly debugRenderer: boolean;
readonly logExtensionHostCommunication?: boolean;
readonly enableSmokeTestDriver?: boolean;
// --- Editors to open
readonly filesToOpenOrCreate?: IPath[] | undefined;
readonly filesToDiff?: IPath[] | undefined;
readonly filesToMerge?: IPath[] | undefined;
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// NOTE: KEEP THIS INTERFACE AS SMALL AS POSSIBLE. AS SUCH:
// - PUT NON-WEB PROPERTIES INTO NATIVE WB ENV SERVICE
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
}
|