-
Notifications
You must be signed in to change notification settings - Fork 29.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116449 from microsoft/tyriar_megan_reconnect
Local terminal reconnection
- Loading branch information
Showing
35 changed files
with
897 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
export enum EnvironmentVariableMutatorType { | ||
Replace = 1, | ||
Append = 2, | ||
Prepend = 3 | ||
} | ||
export interface IEnvironmentVariableMutator { | ||
readonly value: string; | ||
readonly type: EnvironmentVariableMutatorType; | ||
} | ||
/** [variable, mutator] */ | ||
export type ISerializableEnvironmentVariableCollection = [string, IEnvironmentVariableMutator][]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
import { UriComponents } from 'vs/base/common/uri'; | ||
import { IRawTerminalTabLayoutInfo, ITerminalEnvironment, ITerminalTabLayoutInfoById } from 'vs/platform/terminal/common/terminal'; | ||
import { ISerializableEnvironmentVariableCollection } from 'vs/platform/terminal/common/environmentVariable'; | ||
|
||
export interface IShellLaunchConfigDto { | ||
name?: string; | ||
executable?: string; | ||
args?: string[] | string; | ||
cwd?: string | UriComponents; | ||
env?: { [key: string]: string | null; }; | ||
hideFromUser?: boolean; | ||
} | ||
|
||
export interface ISingleTerminalConfiguration<T> { | ||
userValue: T | undefined; | ||
value: T | undefined; | ||
defaultValue: T | undefined; | ||
} | ||
|
||
export interface ICompleteTerminalConfiguration { | ||
'terminal.integrated.automationShell.windows': ISingleTerminalConfiguration<string | string[]>; | ||
'terminal.integrated.automationShell.osx': ISingleTerminalConfiguration<string | string[]>; | ||
'terminal.integrated.automationShell.linux': ISingleTerminalConfiguration<string | string[]>; | ||
'terminal.integrated.shell.windows': ISingleTerminalConfiguration<string | string[]>; | ||
'terminal.integrated.shell.osx': ISingleTerminalConfiguration<string | string[]>; | ||
'terminal.integrated.shell.linux': ISingleTerminalConfiguration<string | string[]>; | ||
'terminal.integrated.shellArgs.windows': ISingleTerminalConfiguration<string | string[]>; | ||
'terminal.integrated.shellArgs.osx': ISingleTerminalConfiguration<string | string[]>; | ||
'terminal.integrated.shellArgs.linux': ISingleTerminalConfiguration<string | string[]>; | ||
'terminal.integrated.env.windows': ISingleTerminalConfiguration<ITerminalEnvironment>; | ||
'terminal.integrated.env.osx': ISingleTerminalConfiguration<ITerminalEnvironment>; | ||
'terminal.integrated.env.linux': ISingleTerminalConfiguration<ITerminalEnvironment>; | ||
'terminal.integrated.inheritEnv': boolean; | ||
'terminal.integrated.cwd': string; | ||
'terminal.integrated.detectLocale': 'auto' | 'off' | 'on'; | ||
'terminal.flowControl': boolean; | ||
} | ||
|
||
export type ITerminalEnvironmentVariableCollections = [string, ISerializableEnvironmentVariableCollection][]; | ||
|
||
export interface IWorkspaceFolderData { | ||
uri: UriComponents; | ||
name: string; | ||
index: number; | ||
} | ||
|
||
export interface ISetTerminalLayoutInfoArgs { | ||
workspaceId: string; | ||
tabs: ITerminalTabLayoutInfoById[]; | ||
} | ||
|
||
export interface IGetTerminalLayoutInfoArgs { | ||
workspaceId: string; | ||
} | ||
|
||
export interface IPtyHostDescriptionDto { | ||
id: number; | ||
pid: number; | ||
title: string; | ||
cwd: string; | ||
workspaceId: string; | ||
workspaceName: string; | ||
isOrphan: boolean; | ||
} | ||
|
||
export type ITerminalTabLayoutInfoDto = IRawTerminalTabLayoutInfo<IPtyHostDescriptionDto>; | ||
|
||
export interface ReplayEntry { cols: number; rows: number; data: string; } | ||
export interface IPtyHostProcessReplayEvent { | ||
events: ReplayEntry[]; | ||
} |
Oops, something went wrong.