Skip to content

Show terminals separately in quickOpenTerm and quickOpenView - #49758

Merged
Daniel Imms (Tyriar) merged 2 commits into
microsoft:masterfrom
gioragutt:terminal_quick_open
May 14, 2018
Merged

Daniel Imms (Tyriar) merged 2 commits into
microsoft:masterfrom
gioragutt:terminal_quick_open

Conversation

@gioragutt

@gioragutt Giora Guttsait (gioragutt) commented May 12, 2018 •

Copy link
Copy Markdown
Contributor

Fixes both quickOpenTerm and quickOpenView command.

@gioragutt Giora Guttsait (gioragutt) changed the title Show terminals separately Terminal Quick Open Show terminals separately in Terminal Quick Open May 12, 2018
@msftclas

Microsoft Contribution License Agreements (msftclas) commented May 12, 2018 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@gioragutt Giora Guttsait (gioragutt) changed the title Show terminals separately in Terminal Quick Open Show terminals separately in quickOpenTerm and quickOpenView May 12, 2018
@gioragutt

Copy link
Copy Markdown
Contributor Author

Daniel Imms (@Tyriar) The code pretty much ends up changing from iterating over tabs or instances, to iterating over the instances in tabs.

This seems like a bit of code rep, but I can't think of a way of removing it, other than exporting some method from TerminalService which returns:

interface TerminalInTab { // or w/e
  tabIndex: number;
  terminalIndex: number;
  terminal: Terminal;
}

and thus we can make the usages outside terminal service be able to just forEach or map/reduce once, instead of doing the nested loops due to having to iterate over terminals in tabs.

@gioragutt

Copy link
Copy Markdown
Contributor Author

Daniel Imms (@Tyriar) any comments?

@Tyriar Daniel Imms (Tyriar) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Works great, thanks! 😃

@gioragutt

Copy link
Copy Markdown
Contributor Author

Daniel Imms (@Tyriar) thanks man! Glad to contribute!

@gioragutt
Giora Guttsait (gioragutt) deleted the terminal_quick_open branch May 14, 2018 16:40
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2020
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.

3 participants