mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-15 10:58:31 -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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user