From ecd957169515ce98fec874f83afc85531242d6ac Mon Sep 17 00:00:00 2001 From: Dirk Baeumer Date: Thu, 26 Jan 2017 14:19:43 +0100 Subject: [PATCH] Some tweaks for setting migration --- extensions/php/src/features/validationProvider.ts | 2 +- extensions/php/src/phpMain.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/php/src/features/validationProvider.ts b/extensions/php/src/features/validationProvider.ts index 64b9086ac7a..80aa8e9ee1d 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 e78cc7c773c..6294405c4cc 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 { -- GitLab