You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Include terminal name in terminal textarea title #99072
accessibilityKeyboard, mouse, ARIA, vision, screen readers (non-specific) issuesbugIssue identified by VS Code Team member as probable buggood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsidersterminalGeneral terminal issues that don't fall under another labelverifiedVerification succeeded
Or maybe go absolutely wild, and have it as a configurable string. Something like "$n (Terminal $i)", where $n is the name you set, and $i is the index.
On it. Chris Norman (@chrisnorman7) Quick clarification, but what was meant by "custom title" in the issue description above?
I guess more specifically, with Terminal X, (custom), is the (custom) the user's choice? How will that terminal name be determined? (looking at the context linked above, it seems it should be what was set for the rename terminal action)
Additionally, before I delve into the source code, can you briefly clarify "focusing" on the textarea Daniel Imms (@Tyriar)? Can't seem to recreate that on the development version or released version.
Additionally, before I delve into the source code, can you briefly clarify "focusing" on the textarea Daniel Imms (@Tyriar)? Can't seem to recreate that on the development version or released version.
Not sure what the image says, but when you rename the terminal with the
"Terminal: Rename" command.
Thanks so much for dealing with it.
Take care,
Chris Norman
Though prior to setting this attribute I anticipate I will need to add a check to see if the title was set or not, along with ensuring this attribute is updated on title changes (renamed instances). Although the latter should already be accounted for.
I see that this issue hasn't been fully resolved as of now. I would like to try to fix it if it is still available to work on.
As I am completely new to this project, I would appreciate some code pointers. With the pointers above I have already found out where the string "said by the narrator" is set. But could someone point me to the entry point for Terminal:Rename?
Thank you, looking forward to making my first contribution.
accessibilityKeyboard, mouse, ARIA, vision, screen readers (non-specific) issuesbugIssue identified by VS Code Team member as probable buggood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsidersterminalGeneral terminal issues that don't fall under another labelverifiedVerification succeeded
Activity
chrisnorman7 commentedon Jun 2, 2020
Or simply the title you set... Maybe the title, then "Terminal 1" in brackets?
chrisnorman7 commentedon Jun 2, 2020
Or maybe go absolutely wild, and have it as a configurable string. Something like "$n (Terminal $i)", where $n is the name you set, and $i is the index.
tabaddor commentedon Jun 3, 2020
I can look into fixing this issue if it is still open, although I do see it has been added to the backlog.
Tyriar commentedon Jun 4, 2020
Arman Tabaddor (@tabaddor) please do 🙂, the backlog for us essentially means we want to do this eventually.
tabaddor commentedon Jun 8, 2020
On it. Chris Norman (@chrisnorman7) Quick clarification, but what was meant by "custom title" in the issue description above?
I guess more specifically, with
Terminal X, (custom), is the (custom) the user's choice? How will that terminal name be determined? (looking at the context linked above, it seems it should be what was set for therename terminalaction)Additionally, before I delve into the source code, can you briefly clarify "focusing" on the textarea Daniel Imms (@Tyriar)? Can't seem to recreate that on the development version or released version.
Tyriar commentedon Jun 8, 2020
Arman Tabaddor (@tabaddor) by custom I mean when you rename a terminal via this command:
The label is set here:
vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts
Line 487 in 162abc7
You'll need a screen reader to verify whether it's read correctly but I expect the change to be on that line.
chrisnorman7 commentedon Jun 8, 2020
tabaddor commentedon Jun 13, 2020
I anticipate changing this line:
to this:
xterm.textarea.setAttribute('aria-label', nls.localize('terminalTextBoxAriaLabel', "Terminal {this._id}, {this._title}"));Though prior to setting this attribute I anticipate I will need to add a check to see if the title was set or not, along with ensuring this attribute is updated on title changes (renamed instances). Although the latter should already be accounted for.
21 remaining items
plainerman commentedon Dec 6, 2020
I see that this issue hasn't been fully resolved as of now. I would like to try to fix it if it is still available to work on.
As I am completely new to this project, I would appreciate some code pointers. With the pointers above I have already found out where the string "said by the narrator" is set. But could someone point me to the entry point for
Terminal:Rename?Thank you, looking forward to making my first contribution.
Update arial-label when renaming a terminal. Fixes microsoft#99072
plainerman commentedon Dec 11, 2020
I found the entry point of
Terminal:Renameand have resolved the issue.A pull request has been created at #112317.
If anyone is searching for the entry point, see
vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.ts
Line 952 in b2444f5
isidorn commentedon Dec 14, 2020
Thanks a lot for creating a PR!