Skip to content

Commit cee08d4

Browse files
committed
Avoid async promise executor
microsoft#134873
1 parent 04dc162 commit cee08d4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

extensions/php-language-features/src/features/validationProvider.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ export default class PHPValidationProvider {
174174
}
175175

176176
private doValidate(textDocument: vscode.TextDocument): Promise<void> {
177-
// eslint-disable-next-line no-async-promise-executor
178-
return new Promise<void>(async (resolve) => {
177+
return new Promise<void>(resolve => {
179178
const executable = this.config!.executable;
180179
if (!executable) {
181180
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.'));

0 commit comments

Comments
 (0)