Skip to content

Remove duplicate declarations in terminal#153280

Merged
meganrogge merged 1 commit intomicrosoft:mainfrom
a-stewart:remove-dduplicate-declarations-in-terminal
Jun 27, 2022
Merged

Remove duplicate declarations in terminal#153280
meganrogge merged 1 commit intomicrosoft:mainfrom
a-stewart:remove-dduplicate-declarations-in-terminal

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.

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.

}

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