Avoid async promise executor

#134873
This commit is contained in:
Rob Lourens
2021-10-12 15:04:02 -07:00
parent 04dc16251a
commit cee08d43d0

View File

@@ -174,8 +174,7 @@ export default class PHPValidationProvider {
}
private doValidate(textDocument: vscode.TextDocument): Promise<void> {
// eslint-disable-next-line no-async-promise-executor
return new Promise<void>(async (resolve) => {
return new Promise<void>(resolve => {
const executable = this.config!.executable;
if (!executable) {
this.showErrorMessage(localize('noPhp', 'Cannot validate since a PHP installation could not be found. Use the setting \'php.validate.executablePath\' to configure the PHP executable.'));