Start building out env var service

This commit is contained in:
Daniel Imms
2020-03-25 07:26:11 -07:00
parent 338d4298f4
commit b41b85d224
5 changed files with 110 additions and 4 deletions

View File

@@ -426,6 +426,19 @@ export interface TerminalLaunchConfig {
isExtensionTerminal?: boolean;
}
export enum EnvironmentVariableMutatorType {
Replace = 1,
Append = 2,
Prepend = 3
}
export interface IEnvironmentVariableCollectionDto {
extensionIdentifier: string;
variables: string[];
values: string[];
types: EnvironmentVariableMutatorType[];
}
export interface MainThreadTerminalServiceShape extends IDisposable {
$createTerminal(config: TerminalLaunchConfig): Promise<{ id: number, name: string; }>;
$dispose(terminalId: number): void;
@@ -436,6 +449,7 @@ export interface MainThreadTerminalServiceShape extends IDisposable {
$stopSendingDataEvents(): void;
$startHandlingLinks(): void;
$stopHandlingLinks(): void;
$updateEnvironmentVariableCollections(collections: IEnvironmentVariableCollectionDto[]): void;
// Process
$sendProcessTitle(terminalId: number, title: string): void;