Skip to content

Commit

Permalink
debug: always enable launch config dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Nov 3, 2016
1 parent d095b83 commit 4fd511d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions src/vs/base/browser/ui/actionbar/actionbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -694,10 +694,6 @@ export class SelectActionItem extends BaseActionItem {
}
}

public set enabled(value: boolean) {
this.selectBox.enabled = value;
}

public blur(): void {
if (this.selectBox) {
this.selectBox.blur();
Expand Down
6 changes: 1 addition & 5 deletions src/vs/workbench/parts/debug/browser/debugActionItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import errors = require('vs/base/common/errors');
import { IAction } from 'vs/base/common/actions';
import { SelectActionItem } from 'vs/base/browser/ui/actionbar/actionbar';
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
import { IDebugService, State, IGlobalConfig } from 'vs/workbench/parts/debug/common/debug';
import { IDebugService, IGlobalConfig } from 'vs/workbench/parts/debug/common/debug';

export class DebugSelectActionItem extends SelectActionItem {

Expand All @@ -25,15 +25,11 @@ export class DebugSelectActionItem extends SelectActionItem {
this.toDispose.push(this.debugService.getViewModel().onDidSelectConfigurationName(name => {
this.updateOptions(false);
}));
this.toDispose.push(this.debugService.onDidChangeState(() => {
this.enabled = this.debugService.state === State.Inactive;
}));
}

public render(container: HTMLElement): void {
super.render(container);
this.updateOptions(true);
this.enabled = this.debugService.state === State.Inactive;
}

private updateOptions(changeDebugConfiguration: boolean): void {
Expand Down

0 comments on commit 4fd511d

Please sign in to comment.