mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 17:23:10 -05:00
Update action run return type (#15568)
* Update action run return type * fix tests * Update rest * Add back null checks
This commit is contained in:
@@ -18,12 +18,7 @@ export class CloseTabAction extends Action {
|
||||
super(CloseTabAction.ID, CloseTabAction.LABEL, CloseTabAction.ICON);
|
||||
}
|
||||
|
||||
run(): Promise<boolean> {
|
||||
try {
|
||||
this.closeFn.apply(this.context);
|
||||
return Promise.resolve(true);
|
||||
} catch (e) {
|
||||
return Promise.resolve(false);
|
||||
}
|
||||
async run(): Promise<void> {
|
||||
this.closeFn.apply(this.context);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user