mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
Convert ModelView validate to Promise (#13390)
* Convert ModelView validate to Promise * more cleanup
This commit is contained in:
@@ -174,7 +174,7 @@ export abstract class ViewBase extends AngularDisposable implements IModelView {
|
||||
return this._onEventEmitter.event;
|
||||
}
|
||||
|
||||
public validate(componentId: string): Thenable<boolean> {
|
||||
public validate(componentId: string): Promise<boolean> {
|
||||
return new Promise(resolve => this.modelStore.eventuallyRunOnComponent(componentId, component => resolve(component.validate()), false));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user