mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Add no-floating-promises for mssql extension (#16956)
This commit is contained in:
@@ -34,7 +34,7 @@ export class HdfsModel {
|
||||
public fileStatus: FileStatus;
|
||||
|
||||
constructor(private readonly fileSource: IFileSource, private readonly path: string) {
|
||||
this.refresh();
|
||||
this.refresh().catch(err => console.error('Error refreshing HDFS Model ', err));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -117,7 +117,7 @@ export class HdfsModel {
|
||||
);
|
||||
} catch (error) {
|
||||
const errMsg = localize('mssql.recursivePermissionOpError', "Error applying permission changes: {0}", (error instanceof Error ? error.message : error));
|
||||
vscode.window.showErrorMessage(errMsg);
|
||||
void vscode.window.showErrorMessage(errMsg);
|
||||
op.updateStatus(azdata.TaskStatus.Failed, errMsg);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ export class ManageAccessDialog {
|
||||
azdata.window.closeDialog(this.dialog);
|
||||
await this.hdfsModel.apply(true);
|
||||
} catch (err) {
|
||||
vscode.window.showErrorMessage(loc.errorApplyingAclChanges(err instanceof HdfsError ? err.message : err));
|
||||
void vscode.window.showErrorMessage(loc.errorApplyingAclChanges(err instanceof HdfsError ? err.message : err));
|
||||
}
|
||||
});
|
||||
this.dialog.customButtons = [this.applyRecursivelyButton];
|
||||
@@ -76,7 +76,7 @@ export class ManageAccessDialog {
|
||||
await this.hdfsModel.apply();
|
||||
return true;
|
||||
} catch (err) {
|
||||
vscode.window.showErrorMessage(loc.errorApplyingAclChanges(err instanceof HdfsError ? err.message : err));
|
||||
void vscode.window.showErrorMessage(loc.errorApplyingAclChanges(err instanceof HdfsError ? err.message : err));
|
||||
}
|
||||
return false;
|
||||
});
|
||||
@@ -331,7 +331,7 @@ export class ManageAccessDialog {
|
||||
|
||||
this.rootLoadingComponent.loading = false;
|
||||
|
||||
this.addUserOrGroupInput.focus();
|
||||
void this.addUserOrGroupInput.focus();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user