Skip to content

Commit 387d634

Browse files
committed
Apply action css class using super ctor
1 parent c311483 commit 387d634

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

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

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ export class KillTerminalAction extends Action {
6262
id: string, label: string,
6363
@ITerminalService private terminalService: ITerminalService
6464
) {
65-
super(id, label);
66-
this.class = 'terminal-action kill';
65+
super(id, label, 'terminal-action kill');
6766
}
6867

6968
public run(event?: any): TPromise<any> {
@@ -89,8 +88,7 @@ export class QuickKillTerminalAction extends Action {
8988
@ITerminalService private terminalService: ITerminalService,
9089
@IQuickOpenService private quickOpenService: IQuickOpenService
9190
) {
92-
super(id, label);
93-
this.class = 'terminal-action kill';
91+
super(id, label, 'terminal-action kill');
9492
}
9593

9694
public run(event?: any): TPromise<any> {
@@ -239,8 +237,7 @@ export class CreateNewTerminalAction extends Action {
239237
@ICommandService private commandService: ICommandService,
240238
@IWorkspaceContextService private workspaceContextService: IWorkspaceContextService
241239
) {
242-
super(id, label);
243-
this.class = 'terminal-action new';
240+
super(id, label, 'terminal-action new');
244241
}
245242

246243
public run(event?: any): TPromise<any> {
@@ -304,8 +301,7 @@ export class SplitTerminalAction extends Action {
304301
id: string, label: string,
305302
@ITerminalService private readonly _terminalService: ITerminalService
306303
) {
307-
super(id, label);
308-
this.class = 'terminal-action split';
304+
super(id, label, 'terminal-action split');
309305
}
310306

311307
public run(event?: any): TPromise<any> {
@@ -599,8 +595,7 @@ export class SwitchTerminalAction extends Action {
599595
id: string, label: string,
600596
@ITerminalService private terminalService: ITerminalService
601597
) {
602-
super(SwitchTerminalAction.ID, SwitchTerminalAction.LABEL);
603-
this.class = 'terminal-action switch-terminal';
598+
super(SwitchTerminalAction.ID, SwitchTerminalAction.LABEL, 'terminal-action switch-terminal');
604599
}
605600

606601
public run(item?: string): TPromise<any> {

0 commit comments

Comments
 (0)