Skip to content

Commit

Permalink
Remove 'rootPath' reference
Browse files Browse the repository at this point in the history
#90562
  • Loading branch information
roblourens committed Feb 13, 2020
1 parent 2b63a58 commit 1fbaccc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1fbaccc

Please sign in to comment.