forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
types.ts
23 lines (20 loc) · 899 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { Resource } from '../../common/types';
import { EnvironmentVariables } from '../../common/variables/types';
import { PythonEnvironment } from '../../pythonEnvironments/info';
export const IEnvironmentActivationService = Symbol('IEnvironmentActivationService');
export interface IEnvironmentActivationService {
getProcessEnvironmentVariables(resource: Resource, shell?: string): Promise<EnvironmentVariables>;
getActivatedEnvironmentVariables(
resource: Resource,
interpreter?: PythonEnvironment,
allowExceptions?: boolean,
shell?: string,
): Promise<NodeJS.ProcessEnv | undefined>;
getEnvironmentActivationShellCommands(
resource: Resource,
interpreter?: PythonEnvironment,
): Promise<string[] | undefined>;
}