Skip to content

Commit 1fbaccc

Browse files
committed
Remove 'rootPath' reference
microsoft#90562
1 parent 2b63a58 commit 1fbaccc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/php-language-features/src/features/validationProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export default class PHPValidationProvider {
247247
}
248248
};
249249

250-
let options = vscode.workspace.rootPath ? { cwd: vscode.workspace.rootPath } : undefined;
250+
let options = (vscode.workspace.workspaceFolders && vscode.workspace.workspaceFolders[0]) ? { cwd: vscode.workspace.workspaceFolders[0].uri.fsPath } : undefined;
251251
let args: string[];
252252
if (this.trigger === RunTrigger.onSave) {
253253
args = PHPValidationProvider.FileArgs.slice(0);

0 commit comments

Comments
 (0)