Remove 'rootPath' reference

#90562
This commit is contained in:
Rob Lourens 2020-02-12 17:42:24 -08:00
parent 2b63a583e4
commit 1fbacccbc9

View file

@ -247,7 +247,7 @@ export default class PHPValidationProvider {
}
};
let options = vscode.workspace.rootPath ? { cwd: vscode.workspace.rootPath } : undefined;
let options = (vscode.workspace.workspaceFolders && vscode.workspace.workspaceFolders[0]) ? { cwd: vscode.workspace.workspaceFolders[0].uri.fsPath } : undefined;
let args: string[];
if (this.trigger === RunTrigger.onSave) {
args = PHPValidationProvider.FileArgs.slice(0);