Skip to content
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

fix toggle bottom panel to align to vscode #10147

Closed
wants to merge 1 commit into from
Closed

fix toggle bottom panel to align to vscode #10147

wants to merge 1 commit into from

Conversation

shuyaqian
Copy link
Contributor

@shuyaqian shuyaqian commented Sep 22, 2021

Signed-off-by: shuyaqian [email protected]

What it does

When there is no bottom panel, we must create a terminal through the top menu or shortcut keys. However, in vscode, the terminal icon on the bottom status bar is always there. If there is no bottom panel, we can click the icon to quickly create a terminal.

How to test

  1. click the ‘toggle bottom panel’ icon in status bar
  2. if there is no bottom panel, it will create a terminal and expand

Review checklist

Reminder for reviewers

Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

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

However, in vscode, the terminal icon on the bottom status bar is always there.

I was unable to see the bottom statusbar item to toggle the bottom panel in vscode, can you clarify?

If there is no bottom panel, we can click the icon to quickly create a terminal.

Given we are a framework we should instead think about providing an API for adopters and extenders to contribute default views to the bottom-panel and open them if the bottom-panel does not exist rather than hardcoding that the terminal should be opened.

execute: () => {
if (this.shell.isExpanded('bottom')) {
if (this.shell.getWidgets('bottom').length === 0) {
commandRegistry.executeCommand('terminal:new');
Copy link
Member

Choose a reason for hiding this comment

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

@shuyaqian I do not believe that @theia/core should know anything about terminals.
It is possible that applications will also choose to omit the use of terminals (#6645).

@vince-fugnitto vince-fugnitto added the 🤔 needs more info issues that require more info from the author label Sep 22, 2021
@shuyaqian
Copy link
Contributor Author

the bottom panel in vscode, can you clarify?

Sorry, I found out that I installed a terminal plugin in vscode. The status bar icon is registered with this plugin. But I have to say, it's really convenient. Intellij has the icon that allow you to quickly create a terminal.

@vince-fugnitto
Copy link
Member

Sorry, I found out that I installed a terminal plugin in vscode.

@shuyaqian if it’s the case then you can include the plugin by default in your custom application as a built-in? I don’t think there’s a need to support it directly in the framework like you’ve done. If it’s necessary you can also create a custom theia extension for your product that contributes the functionality as well.

@shuyaqian shuyaqian closed this Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 needs more info issues that require more info from the author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants