Skip to content

Commit d6a03a7

Browse files
authored
Add Terminal via "+" in terminal tool bar (#15470)
* Add Terminal via "+" in terminal tool bar fixed #15282
1 parent d024d89 commit d6a03a7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/terminal/src/browser/terminal-frontend-contribution.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,13 @@ export class TerminalFrontendContribution implements FrontendApplicationContribu
749749
}
750750

751751
registerToolbarItems(toolbar: TabBarToolbarRegistry): void {
752+
toolbar.registerItem({
753+
id: TerminalCommands.NEW.id,
754+
command: TerminalCommands.NEW.id,
755+
icon: codicon('add'),
756+
tooltip: TerminalCommands.NEW.label,
757+
isVisible: w => this.withWidget(w, () => true),
758+
});
752759
toolbar.registerItem({
753760
id: TerminalCommands.SPLIT.id,
754761
command: TerminalCommands.SPLIT.id,

0 commit comments

Comments
 (0)