diff --git a/extensions/php/src/features/validationProvider.ts b/extensions/php/src/features/validationProvider.ts index 64b9086ac7ad64d1f4b30d1c7fe4e0d44e3a52b5..80aa8e9ee1d9f85deac22fc103aa7f301b1be76e 100644 --- a/extensions/php/src/features/validationProvider.ts +++ b/extensions/php/src/features/validationProvider.ts @@ -237,7 +237,7 @@ export default class PHPValidationProvider { private showError(error: any, executable: string): void { let message: string = null; if (error.code === 'ENOENT') { - if (executable) { + if (this.executable) { message = localize('wrongExecutable', 'Cannot validate since {0} is not a valid php executable. Click on the Path status bar item to configure the executable.', executable); } else { message = localize('noExecutable', 'Cannot validate since no PHP executable is set. Click on the Path status bar item to configure the executable.'); diff --git a/extensions/php/src/phpMain.ts b/extensions/php/src/phpMain.ts index e78cc7c773c0915d72bb0c93df565d3386a13681..6294405c4ccf5aa9c64335da39b951511c1ee2c2 100644 --- a/extensions/php/src/phpMain.ts +++ b/extensions/php/src/phpMain.ts @@ -66,6 +66,7 @@ export function activate(context: vscode.ExtensionContext): any { updateStatusBarItem(context); }); } else { + context.workspaceState.update(MigratedKey, true); validator.activate(context.subscriptions); } } else {