Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate declarations in terminal #153280

Conversation

a-stewart
Copy link
Contributor

This PR fixes #153279

Interfaces IRawTerminalInstanceLayoutInfo in platform/terminal/common/terminal.ts and IDefaultShellAndArgsRequest in workbench/contrib/terminal/common/terminal.ts are defined twice with exactly the same definition.

This PR removes one of each duplicate definitions.

@@ -181,11 +181,6 @@ export enum TitleEventSource {
export type ITerminalsLayoutInfo = IRawTerminalsLayoutInfo<IPtyHostAttachTarget | null>;
export type ITerminalsLayoutInfoById = IRawTerminalsLayoutInfo<number>;

export interface IRawTerminalInstanceLayoutInfo<T> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See line 137 for the duplicate definition.

@@ -454,11 +454,6 @@ export interface IStartExtensionTerminalRequest {
callback: (error: ITerminalLaunchError | undefined) => void;
}

export interface IDefaultShellAndArgsRequest {
useAutomationShell: boolean;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See line 361 for duplicate definition.

@meganrogge meganrogge merged commit d1dd57e into microsoft:main Jun 27, 2022
@Tyriar
Copy link
Member

Tyriar commented Jun 27, 2022

@Tyriar Tyriar added this to the June 2022 milestone Jun 27, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Aug 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IDefaultShellAndArgsRequest and IRawTerminalInstanceLayoutInfo definitions are duplicated
3 participants