Skip to content

Commit c311483

Browse files
committed
Add split terminal action to terminal panel
1 parent bcf634b commit c311483

5 files changed

Lines changed: 7 additions & 1 deletion

File tree

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

src/vs/workbench/parts/terminal/electron-browser/media/terminal.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,11 @@
143143
/* Light theme */
144144
.monaco-workbench .terminal-action.kill { background: url('kill.svg') center center no-repeat; }
145145
.monaco-workbench .terminal-action.new { background: url('new.svg') center center no-repeat; }
146+
.monaco-workbench .terminal-action.split { background: url('split.svg') center center no-repeat; }
146147
/* Dark theme / HC theme */
147148
.vs-dark .monaco-workbench .terminal-action.kill, .hc-black .monaco-workbench .terminal-action.kill { background: url('kill-inverse.svg') center center no-repeat; }
148149
.vs-dark .monaco-workbench .terminal-action.new, .hc-black .monaco-workbench .terminal-action.new { background: url('new-inverse.svg') center center no-repeat; }
150+
.vs-dark .monaco-workbench .terminal-action.split, .hc-black .monaco-workbench .terminal-action.split { background: url('split-inverse.svg') center center no-repeat; }
149151

150152
.vs-dark .monaco-workbench.mac .panel.integrated-terminal .terminal:not(.enable-mouse-events),
151153
.hc-black .monaco-workbench.mac .panel.integrated-terminal .terminal:not(.enable-mouse-events) {

src/vs/workbench/parts/terminal/electron-browser/terminalActions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ export class SplitTerminalAction extends Action {
305305
@ITerminalService private readonly _terminalService: ITerminalService
306306
) {
307307
super(id, label);
308+
this.class = 'terminal-action split';
308309
}
309310

310311
public run(event?: any): TPromise<any> {

src/vs/workbench/parts/terminal/electron-browser/terminalPanel.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ export class TerminalPanel extends Panel {
128128
this._actions = [
129129
this._instantiationService.createInstance(SwitchTerminalAction, SwitchTerminalAction.ID, SwitchTerminalAction.LABEL),
130130
this._instantiationService.createInstance(CreateNewTerminalAction, CreateNewTerminalAction.ID, CreateNewTerminalAction.PANEL_LABEL),
131-
this._instantiationService.createInstance(KillTerminalAction, KillTerminalAction.ID, KillTerminalAction.PANEL_LABEL)
131+
this._instantiationService.createInstance(KillTerminalAction, KillTerminalAction.ID, KillTerminalAction.PANEL_LABEL),
132+
this._instantiationService.createInstance(SplitTerminalAction, SplitTerminalAction.ID, SplitTerminalAction.LABEL)
132133
];
133134
this._actions.forEach(a => {
134135
this._register(a);

0 commit comments

Comments
 (0)