mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-07 01:25:38 -05:00
Remove unnecessary awaits from extensions (#19571)
* Remove unnecessary awaits * fix ignore * revert eslintignore * try * increase size * Increase sql lint size
This commit is contained in:
@@ -364,7 +364,7 @@ export async function stopMigration(account: azdata.Account, subscription: Subsc
|
||||
|
||||
export async function getLocationDisplayName(location: string): Promise<string> {
|
||||
const api = await getAzureCoreAPI();
|
||||
return await api.getRegionDisplayName(location);
|
||||
return api.getRegionDisplayName(location);
|
||||
}
|
||||
|
||||
type SortableAzureResources = AzureProduct | azurecore.azureResource.FileShare | azurecore.azureResource.BlobContainer | azurecore.azureResource.Blob | azurecore.azureResource.AzureResourceSubscription | SqlMigrationService;
|
||||
|
||||
@@ -56,7 +56,7 @@ export class SavedAssessmentDialog {
|
||||
|
||||
dialog.registerCloseValidator(async () => {
|
||||
if (this.stateModel.resumeAssessment) {
|
||||
if (await !this.stateModel.loadSavedInfo()) {
|
||||
if (!this.stateModel.loadSavedInfo()) {
|
||||
void vscode.window.showInformationMessage(constants.OPEN_SAVED_INFO_ERROR);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ export class CreateResourceGroupDialog {
|
||||
|
||||
async initialize(): Promise<azureResource.AzureResourceResourceGroup> {
|
||||
let tab = azdata.window.createTab('sql.migration.CreateResourceGroupDialog');
|
||||
await tab.registerContent(async (view: azdata.ModelView) => {
|
||||
tab.registerContent(async (view: azdata.ModelView) => {
|
||||
this._view = view;
|
||||
|
||||
const resourceGroupDescription = view.modelBuilder.text().withProps({
|
||||
|
||||
@@ -67,7 +67,7 @@ export class SelectMigrationServiceDialog {
|
||||
async initialize(): Promise<void> {
|
||||
this._serviceContext = await MigrationLocalStorage.getMigrationServiceContext();
|
||||
|
||||
await this._dialog.registerContent(async (view: azdata.ModelView) => {
|
||||
this._dialog.registerContent(async (view: azdata.ModelView) => {
|
||||
this._disposables.push(
|
||||
view.onClosed(e => {
|
||||
this._disposables.forEach(
|
||||
|
||||
@@ -31,7 +31,7 @@ export class TargetDatabaseSummaryDialog {
|
||||
|
||||
async initialize(): Promise<void> {
|
||||
let tab = azdata.window.createTab('sql.migration.CreateResourceGroupDialog');
|
||||
await tab.registerContent(async (view: azdata.ModelView) => {
|
||||
tab.registerContent(async (view: azdata.ModelView) => {
|
||||
this._view = view;
|
||||
|
||||
const databaseCount = this._view.modelBuilder.text().withProps({
|
||||
|
||||
@@ -174,7 +174,7 @@ export class SKURecommendationPage extends MigrationWizardPage {
|
||||
}
|
||||
}).component();
|
||||
this._chooseTargetComponent = await this.createChooseTargetComponent(view);
|
||||
const _azureRecommendationsContainer = await this.createAzureRecommendationContainer(view);
|
||||
const _azureRecommendationsContainer = this.createAzureRecommendationContainer(view);
|
||||
this.assessmentGroupContainer = await this.createViewAssessmentsContainer();
|
||||
this._formContainer = view.modelBuilder.formContainer().withFormItems(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user