提交 25026067 编写于 作者: R Rob Lourens

Fix #29094

上级 c793042d
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册