@@ -29,7 +29,6 @@ export interface IAction extends IDisposable {
2929 class : string | undefined ;
3030 enabled : boolean ;
3131 checked : boolean ;
32- radio : boolean ;
3332 run ( event ?: any ) : Promise < any > ;
3433}
3534
@@ -54,7 +53,6 @@ export interface IActionChangeEvent {
5453 readonly class ?: string ;
5554 readonly enabled ?: boolean ;
5655 readonly checked ?: boolean ;
57- readonly radio ?: boolean ;
5856}
5957
6058export class Action extends Disposable implements IAction {
@@ -68,7 +66,6 @@ export class Action extends Disposable implements IAction {
6866 protected _cssClass : string | undefined ;
6967 protected _enabled : boolean = true ;
7068 protected _checked : boolean = false ;
71- protected _radio : boolean = false ;
7269 protected readonly _actionCallback ?: ( event ?: any ) => Promise < any > ;
7370
7471 constructor ( id : string , label : string = '' , cssClass : string = '' , enabled : boolean = true , actionCallback ?: ( event ?: any ) => Promise < any > ) {
@@ -152,28 +149,13 @@ export class Action extends Disposable implements IAction {
152149 this . _setChecked ( value ) ;
153150 }
154151
155- get radio ( ) : boolean {
156- return this . _radio ;
157- }
158-
159- set radio ( value : boolean ) {
160- this . _setRadio ( value ) ;
161- }
162-
163152 protected _setChecked ( value : boolean ) : void {
164153 if ( this . _checked !== value ) {
165154 this . _checked = value ;
166155 this . _onDidChange . fire ( { checked : value } ) ;
167156 }
168157 }
169158
170- protected _setRadio ( value : boolean ) : void {
171- if ( this . _radio !== value ) {
172- this . _radio = value ;
173- this . _onDidChange . fire ( { radio : value } ) ;
174- }
175- }
176-
177159 run ( event ?: any , _data ?: ITelemetryData ) : Promise < any > {
178160 if ( this . _actionCallback ) {
179161 return this . _actionCallback ( event ) ;
0 commit comments