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