mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Fix #29094
This commit is contained in:
parent
c793042d0b
commit
250260678a
|
@ -129,10 +129,10 @@ export default class PHPValidationProvider {
|
||||||
if (section) {
|
if (section) {
|
||||||
this.validationEnabled = section.get<boolean>('validate.enable', true);
|
this.validationEnabled = section.get<boolean>('validate.enable', true);
|
||||||
let inspect = section.inspect<string>('validate.executablePath');
|
let inspect = section.inspect<string>('validate.executablePath');
|
||||||
if (inspect.workspaceValue) {
|
if (inspect && inspect.workspaceValue) {
|
||||||
this.executable = inspect.workspaceValue;
|
this.executable = inspect.workspaceValue;
|
||||||
this.executableIsUserDefined = false;
|
this.executableIsUserDefined = false;
|
||||||
} else if (inspect.globalValue) {
|
} else if (inspect && inspect.globalValue) {
|
||||||
this.executable = inspect.globalValue;
|
this.executable = inspect.globalValue;
|
||||||
this.executableIsUserDefined = true;
|
this.executableIsUserDefined = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue