-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed #5543: implemented "show all opened terminals" quick-open command #5577
Conversation
packages/terminal/src/browser/terminal-frontend-contribution.ts
Outdated
Show resolved
Hide resolved
packages/terminal/src/browser/terminal-frontend-contribution.ts
Outdated
Show resolved
Hide resolved
packages/terminal/src/browser/terminal-frontend-contribution.ts
Outdated
Show resolved
Hide resolved
@lmcbout could you test the PR as well? |
Currently testing, Putting terminal-# seems repetitive. I can only see one terminal using (_terminal 6) , the others, I see the user path, so hard to match the list of terminal (Quick selection) and the actual terminal . I also notice the same number being used for the terminal (See picture) . Also, How is the number generated, if I open a new terminal, (Small number) and if I run a task, (Number 15, 26. , not even consecutive, why? |
Thanks Jacque! Just found out the sorting logic does not work from your screenshot. Yes, adding a separator makes sense. The terminal-# is the terminal id. I am not sure why the numbers are not consecutive, but I think since it is difficult to match the terminal-# to the name displayed on the terminal widget, I would use |
I can't reproduce the repetitive terminal-# issue. How did you get the same terminal-6 when you tested it ;)? @lmcbout |
8685856
to
3b7992f
Compare
@lmcbout do you mind reviewing it again when you get the chance? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments, LGTM
@kittaakos could you give it a review as well whenever you get the chance? |
…ck-open command - Implemented the "Show All Opened Terminals" command in the quick command menu, which can display all the currently opened terminal widgets. - User can navigate to each terminal widget by selection, and has the option to create a new terminal. - The command has a global prefix: `term `, to be aligned to VS Code. Signed-off-by: fangnx <naxin.fang@ericsson.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code wise looks good
if @vince-fugnitto @lmcbout are tested it and happy when please merge it
While testing with the latest code ( commit 8e42335 ), I noticed when selecting a terminal (there is a duplication of ID - terminal 4), it selects the first one with the "terminal-4", not the selected one which is the second terminal entry (last entry from the list). Note the last two entries from the terminal list , both have terminal-4 |
I don't believe this is an issue with @fangnx code. |
@lmcbout please open an issue regarding the terminal ids not being unique including steps to reproduce. |
Implemented the "Show All Opened Terminals" command in the quick open menu. The command displays all the currently opened terminal widgets, and the user can navigate to each of them by selection and have the option to create a new terminal.
The command has the global prefix:
term
, to be aligned to VS Code.The Terminal package may require some refactoring. The
terminal-frontend-contribution
class seems to include functions that should be otherwise put into a separate class.