Skip to content

Fix setting title of renamed terminal windows - #112317

Merged
Daniel Imms (Tyriar) merged 2 commits into
microsoft:masterfrom
plainerman:fix-99072
Jan 19, 2021
Merged

Daniel Imms (Tyriar) merged 2 commits into
microsoft:masterfrom
plainerman:fix-99072

Conversation

@plainerman

Copy link
Copy Markdown
Contributor

This PR fixes #99072

As of now, when renaming terminal windows, the title of the terminal will not be updated. This makes it incompatible with text-to-speech programs. Whenever the title of a terminal changes, this change should propagate.

I have moved the required changes into the setTitle method of a terminal instance.

To try this fix, do the following:

  • Call the action "Terminal: Rename" by pressing Ctrl + Shift + P and searching for it
  • Give a new desired name
  • Start the narrator or any other text-to-speech program
  • Click the "Terminal" Tab
  • It now reads the custom title

This change also ensures that the title is set in the beginning, meaning that the title is set accordingly for predefined names (e.g. "powershell").

Move setting the custom title from the attachment function to setTitle. setTitle will be called anyway, resolving this issue
@plainerman Michael Plainer (plainerman) changed the title Fix setting title of renmaed terminal windows Fix setting title of renamed terminal windows Dec 11, 2020
@isidorn

Copy link
Copy Markdown

Megan Rogge (@meganrogge) please let me know if you need help reviewing this as I was involved in the discussion on the issue

@plainerman

Copy link
Copy Markdown
Contributor Author

Megan Rogge (@meganrogge) I was wondering whether there is anything I can do to help you getting the PR merged?

Also, as this is my first contribution, I wanted to ask whether there is something wrong because the expected status of the one test has not been reported yet?

@isidorn

Copy link
Copy Markdown

Michael Plainer (@plainerman) I believe Megan Rogge (@meganrogge) was on vacation. She should respond to your questions soon.
As for the test, no worries about that, this is expected.

@plainerman

Copy link
Copy Markdown
Contributor Author

Megan Rogge (@meganrogge), I hope you had a nice time off :)

I wanted to ask whether there are any updates regarding this PR? I'm eager to getting it merged, so don't hesitate to contact me if there is anything I can do to assist you.

@isidorn

Copy link
Copy Markdown

Maybe Daniel Imms (@Tyriar) can help, he is also back from vacation.

@Tyriar Daniel Imms (Tyriar) added this to the February 2021 milestone Jan 19, 2021
@Tyriar Daniel Imms (Tyriar) self-assigned this Jan 19, 2021

@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.

Perfect, thanks!

@Tyriar
Daniel Imms (Tyriar) merged commit 616fb1c into microsoft:master Jan 19, 2021
@plainerman

Copy link
Copy Markdown
Contributor Author

Thank you for the review Daniel Imms (@Tyriar) !

And also thank you Isidor Nikolic (@isidorn) for your continued support in this PR. :)

@github-actions github-actions Bot locked and limited conversation to collaborators Mar 5, 2021
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.

Include terminal name in terminal textarea title

4 participants