[PR #1676] [MERGED] App now initializes the connection instead of term control. #24640

Open
opened 2026-01-31 09:04:31 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/1676
Author: @PankajBhojwani
Created: 6/27/2019
Status: Merged
Merged: 6/28/2019
Merged by: @PankajBhojwani

Base: masterHead: flow


📝 Commits (2)

  • e9ead80 App now initializes the connection instead of term control.
  • 091a4cb formatting changes

📊 Changes

5 files changed (+17 additions, -18 deletions)

View changed files

📝 src/cascadia/TerminalApp/App.cpp (+11 -2)
📝 src/cascadia/TerminalApp/App.h (+1 -0)
📝 src/cascadia/TerminalControl/TermControl.cpp (+3 -14)
📝 src/cascadia/TerminalControl/TermControl.h (+1 -1)
📝 src/cascadia/TerminalControl/TermControl.idl (+1 -1)

📄 Description

Summary of the Pull Request

We want TermControl to be agnostic to the type of connection, so the connection initialization has been moved to TerminalApp.

References

PR Checklist

  • Closes #xxx
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Requires documentation to be updated
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments

The TermControl constructor has been modified to take in a connection, thus TermControl does not need to initialize a connection anymore. Instead, TerminalApp initializes the connection and passes it into the TermControl constructor. Thus once we start allowing different types of connections (an Azure connection for example), the detection of the type of connection only needs to happen in TerminalApp.

Validation Steps Performed


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/1676 **Author:** [@PankajBhojwani](https://github.com/PankajBhojwani) **Created:** 6/27/2019 **Status:** ✅ Merged **Merged:** 6/28/2019 **Merged by:** [@PankajBhojwani](https://github.com/PankajBhojwani) **Base:** `master` ← **Head:** `flow` --- ### 📝 Commits (2) - [`e9ead80`](https://github.com/microsoft/terminal/commit/e9ead80fd6883f54ef2b03b569f17ac4c6f8f4d3) App now initializes the connection instead of term control. - [`091a4cb`](https://github.com/microsoft/terminal/commit/091a4cb14e24f930ccf40b916736815dd7bd4801) formatting changes ### 📊 Changes **5 files changed** (+17 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/App.cpp` (+11 -2) 📝 `src/cascadia/TerminalApp/App.h` (+1 -0) 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+3 -14) 📝 `src/cascadia/TerminalControl/TermControl.h` (+1 -1) 📝 `src/cascadia/TerminalControl/TermControl.idl` (+1 -1) </details> ### 📄 Description <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request We want TermControl to be agnostic to the type of connection, so the connection initialization has been moved to TerminalApp. <!-- Other than the issue solved, is this relevant to any other issues/existing PRs? --> ## References <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [ ] Closes #xxx * [ ] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [ ] Requires documentation to be updated * [X] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments The TermControl constructor has been modified to take in a connection, thus TermControl does not need to initialize a connection anymore. Instead, TerminalApp initializes the connection and passes it into the TermControl constructor. Thus once we start allowing different types of connections (an Azure connection for example), the detection of the type of connection only needs to happen in TerminalApp. <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:04:31 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#24640