mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Remove async keyword from abstract functions (#14150)
This commit is contained in:
@@ -30,9 +30,9 @@ export abstract class AgentDialog<T extends IAgentDialogData> {
|
|||||||
return this.model.dialogMode;
|
return this.model.dialogMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract async updateModel(): Promise<void>;
|
protected abstract updateModel(): Promise<void>;
|
||||||
|
|
||||||
protected abstract async initializeDialog(dialog: azdata.window.Dialog): Promise<void>;
|
protected abstract initializeDialog(dialog: azdata.window.Dialog): Promise<void>;
|
||||||
|
|
||||||
public async openDialog(dialogName?: string) {
|
public async openDialog(dialogName?: string) {
|
||||||
if (!this._isOpen) {
|
if (!this._isOpen) {
|
||||||
|
|||||||
@@ -24,5 +24,5 @@ export abstract class Dashboard {
|
|||||||
return dashboard;
|
return dashboard;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract async registerTabs(modelView: azdata.ModelView): Promise<(azdata.DashboardTab | azdata.DashboardTabGroup)[]>;
|
protected abstract registerTabs(modelView: azdata.ModelView): Promise<(azdata.DashboardTab | azdata.DashboardTabGroup)[]>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ export abstract class AzureAuth implements vscode.Disposable {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected abstract async login(tenant: Tenant, resource: Resource): Promise<{ response: OAuthTokenResponse, authComplete: Deferred<void, Error> }>;
|
protected abstract login(tenant: Tenant, resource: Resource): Promise<{ response: OAuthTokenResponse, authComplete: Deferred<void, Error> }>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Refreshes a token, if a refreshToken is passed in then we use that. If it is not passed in then we will prompt the user for consent.
|
* Refreshes a token, if a refreshToken is passed in then we use that. If it is not passed in then we will prompt the user for consent.
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ export abstract class TreeNode {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract async getChildren(): Promise<TreeNode[]>;
|
public abstract getChildren(): Promise<TreeNode[]>;
|
||||||
public abstract getTreeItem(): vscode.TreeItem;
|
public abstract getTreeItem(): vscode.TreeItem;
|
||||||
public abstract getNodeInfo(): azdata.NodeInfo;
|
public abstract getNodeInfo(): azdata.NodeInfo;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export abstract class ResourceTypeModel extends Model {
|
|||||||
}
|
}
|
||||||
|
|
||||||
abstract initialize(): void;
|
abstract initialize(): void;
|
||||||
abstract async onOk(): Promise<void>;
|
abstract onOk(): Promise<void>;
|
||||||
abstract onCancel(): void;
|
abstract onCancel(): void;
|
||||||
/**
|
/**
|
||||||
* performs the script generation and returns true if script was generated successfully
|
* performs the script generation and returns true if script was generated successfully
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export abstract class SqlAssessmentTab implements azdata.Tab, vscode.Disposable
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract async tabContent(view: azdata.ModelView): Promise<azdata.Component>;
|
abstract tabContent(view: azdata.ModelView): Promise<azdata.Component>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,5 +7,5 @@ import * as azdata from 'azdata';
|
|||||||
|
|
||||||
export abstract class AssessmentDialogComponent {
|
export abstract class AssessmentDialogComponent {
|
||||||
|
|
||||||
abstract async createComponent(view: azdata.ModelView): Promise<azdata.Component>;
|
abstract createComponent(view: azdata.ModelView): Promise<azdata.Component>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,14 +27,14 @@ export abstract class MigrationWizardPage {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract async registerContent(view: azdata.ModelView): Promise<void>;
|
protected abstract registerContent(view: azdata.ModelView): Promise<void>;
|
||||||
|
|
||||||
public getwizardPage(): azdata.window.WizardPage {
|
public getwizardPage(): azdata.window.WizardPage {
|
||||||
return this.wizardPage;
|
return this.wizardPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract async onPageEnter(): Promise<void>;
|
public abstract onPageEnter(): Promise<void>;
|
||||||
public abstract async onPageLeave(): Promise<void>;
|
public abstract onPageLeave(): Promise<void>;
|
||||||
|
|
||||||
private readonly stateChanges: (() => Promise<void>)[] = [];
|
private readonly stateChanges: (() => Promise<void>)[] = [];
|
||||||
protected async onStateChangeEvent(e: StateChangeEvent) {
|
protected async onStateChangeEvent(e: StateChangeEvent) {
|
||||||
@@ -66,7 +66,7 @@ export abstract class MigrationWizardPage {
|
|||||||
this.queueActive = false;
|
this.queueActive = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract async handleStateChange(e: StateChangeEvent): Promise<void>;
|
protected abstract handleStateChange(e: StateChangeEvent): Promise<void>;
|
||||||
|
|
||||||
public canEnter(): Promise<boolean> {
|
public canEnter(): Promise<boolean> {
|
||||||
return Promise.resolve(true);
|
return Promise.resolve(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user