Skip to content

Commit

Permalink
fixes #69340
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Feb 25, 2019
1 parent d2c6aa2 commit c764deb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/vs/workbench/contrib/debug/browser/debugToolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as dom from 'vs/base/browser/dom';
import * as arrays from 'vs/base/common/arrays';
import { StandardMouseEvent } from 'vs/base/browser/mouseEvent';
import { IAction, IRunEvent } from 'vs/base/common/actions';
import { ActionBar, ActionsOrientation } from 'vs/base/browser/ui/actionbar/actionbar';
import { ActionBar, ActionsOrientation, Separator } from 'vs/base/browser/ui/actionbar/actionbar';
import { IPartService } from 'vs/workbench/services/part/common/partService';
import { IWorkbenchContribution } from 'vs/workbench/common/contributions';
import { IDebugConfiguration, IDebugService, State } from 'vs/workbench/contrib/debug/common/debug';
Expand Down Expand Up @@ -306,14 +306,12 @@ export class DebugToolbar extends Themable implements IWorkbenchContribution {
return true;
}).sort((first, second) => first.weight - second.weight);

const primary: IAction[] = [];
fillInActionBarActions(menu, undefined, { primary, secondary: [] });
actions.push(...primary);
fillInActionBarActions(menu, undefined, actions);
if (debugService.getViewModel().isMultiSessionView()) {
actions.push(instantiationService.createInstance(FocusSessionAction, FocusSessionAction.ID, FocusSessionAction.LABEL));
}

return actions;
return actions.filter(a => !(a instanceof Separator)); // do not render separators for now
}

public dispose(): void {
Expand Down

0 comments on commit c764deb

Please sign in to comment.